home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #2 / Amiga Plus CD - 1995 - No. 2.iso / internet / faq / englisch / gnuemacs < prev    next >
Encoding:
Text File  |  1995-04-11  |  146.9 KB  |  3,661 lines

  1. Archive-name: GNU-Emacs-FAQ/part1
  2.  
  3.                        GNU Emacs FAQ: Introduction
  4.  
  5. This is the introduction to a list of frequently asked questions (FAQ)
  6. about GNU Emacs 19 with answers.  Some of the answers are not valid for GNU
  7. Emacs 18.
  8.  
  9. The FAQ is posted to reduce the noise level in the gnu.emacs.help newsgroup
  10. (which is also the help-gnu-emacs mailing list) which results from the
  11. repetition of frequently asked questions, wrong answers to these questions,
  12. corrections to the wrong answers, corrections to the corrections, debate,
  13. name calling, and generally unproductive use of the mailing list.  Also, it
  14. serves as a repository of the canonical "best" answers to these questions.
  15. However, if you know a better answer or even a slight change that improves
  16. an answer, please tell us!
  17.  
  18. If you know the answer to a question in the FAQ list, please reply to the
  19. question by e-mail instead of posting.  Help reduce noise!
  20.  
  21. The FAQ is crossposted to comp.emacs because some sites do not receive the
  22. gnu.* newsgroups.  The FAQ is also crossposted to news.answers.
  23.  
  24. Full instructions for getting the latest FAQ are in question 22.
  25.  
  26. A diff file between the last version of the FAQ and this one will be posted
  27. along with the FAQ next month.  Meanwhile, you can get the diffs at
  28.  
  29.     ftp://the-tech.mit.edu/pub/GNU-Emacs/faq-diffs
  30.  
  31. Please suggest new questions, answers, wording changes, and deletions by
  32. sending mail to reuven@the-tech.mit.edu.  The most helpful form for
  33. suggestions is a context diff (i.e., the output of `diff -c').  Include
  34. "FAQ" in the subject of messages about the FAQ list.
  35.  
  36. Please do not send questions to us just because you do not want to disturb
  37. a lot of people and you think we would know the answer.  We do not have
  38. time to answer questions individually.  :-(
  39.  
  40. --
  41. Reuven M. Lerner <reuven@the-tech.mit.edu> and the FAQ team (a full list is
  42. at the bottom of the FAQ).
  43.  
  44. ----------------------------------------------------------------------
  45.  
  46. Notation Used in FAQ
  47.  
  48. 1:   What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
  49. 2:   What does "M-x command" mean?
  50. 3:   How do I read topic XXX in the on-line manual?
  51. 4:   What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
  52. 5:   What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
  53.  
  54. General Questions
  55.  
  56. 6:   What is the LPF?
  57. 7:   What is the real legal meaning of the GNU copyleft?
  58. 8:   What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
  59.      comp.emacs, etc.?
  60. 9:   Where can I get old postings to gnu.emacs.help and other GNU groups?
  61. 10:  Where should I report bugs and other problems with Emacs?
  62. 11:  How do I unsubscribe from this mailing list?
  63. 12:  What is the current address of the FSF?
  64.  
  65. On-line Help, Printed Manuals, Other Sources of Help
  66.  
  67. 13:  I'm just starting Emacs; how do I do basic editing?
  68. 14:  How do I find out how to do something in Emacs?
  69. 15:  How do I get a printed copy of the Emacs manual?
  70. 16:  Where can I get documentation on Emacs Lisp?
  71. 17:  How do I install a piece of Texinfo documentation?
  72. 18:  How do I print a Texinfo file?
  73. 19:  Can I view Info files without using Emacs?
  74. 20:  What informational files are available for Emacs?
  75. 21:  Where can I get help in installing Emacs?
  76. 22:  Where can I get the latest version of this document (the FAQ list)?
  77.  
  78. Status of Emacs
  79.  
  80. 23:  Where does the name "Emacs" come from?
  81. 24:  What is the latest version of Emacs?
  82. 25:  What is different about Emacs 19?
  83.  
  84. Common Things People Want To Do
  85.  
  86. 26:  How do I set up a .emacs file properly?
  87. 27:  How do I debug a .emacs file?
  88. 28:  How do I make Emacs display the current line (or column) number?
  89. 29:  How do I turn on abbrevs by default just in mode XXX?
  90. 30:  How do I turn on auto-fill mode by default?
  91. 31:  How do I make Emacs use a certain major mode for certain files?
  92. 32:  How do I search for, delete, or replace unprintable (8-bit or control)
  93.      characters?
  94. 33:  How can I highlight a region of text in Emacs?
  95. 34:  How do I control Emacs's case-sensitivity when searching/replacing?
  96. 35:  How do I make Emacs wrap words for me?
  97. 36:  Where can I get a better spelling checker for Emacs?
  98. 37:  How can I spell-check TeX or *roff documents?
  99. 38:  How do I change load-path?
  100. 39:  How do I use an already running Emacs from another window?
  101. 40:  How do I make Emacs recognize my compiler's funny error messages?
  102. 41:  How do I indent switch statements like this?
  103. 42:  How can I make Emacs automatically scroll horizontally?
  104. 43:  How do I make Emacs "typeover" or "overwrite" instead of inserting?
  105. 44:  How do I stop Emacs from beeping on a terminal?
  106. 45:  How do I turn down the bell volume in Emacs running under X Windows?
  107. 46:  How do I tell Emacs to automatically indent a new line to the
  108.      indentation of the previous line?
  109. 47:  How do I show which parenthesis matches the one I'm looking at?
  110. 48:  In C mode, can I show just the lines that will be left after #ifdef
  111.      commands are handled by the compiler?
  112. 49:  Is there an equivalent to the `.' (dot) command of vi?
  113. 50:  What are the valid X resource settings (i.e., stuff in .Xdefaults)?
  114. 51:  How do I execute ("evaluate") a piece of Emacs Lisp code?
  115. 52:  How do I change Emacs's idea of the tab character's length?
  116. 53:  How do I insert `>' at the beginning of every line?
  117. 54:  How do I insert "_^H" before each character in a region to get an
  118.      underlined paragraph?
  119. 55:  How do I repeat a command as many times as possible?
  120. 56:  How do I make Emacs behave like this: when I go up or down, the cursor
  121.      should stay in the same column even if the line is too short?
  122. 57:  How do I tell Emacs to iconify itself?
  123. 58:  How do I use regexps (regular expressions) in Emacs?
  124. 59:  How do I perform a replace operation across more than one file?
  125. 60:  Where is the documentation for "etags"?
  126. 61:  How do I disable backup files?
  127. 62:  How do I disable auto-save-mode?
  128. 63:  How can I create or modify new pull-down menu options?
  129. 64:  How do I delete menus and menu options?
  130. 65:  What are hilit19 and font-lock modes, what is the difference between
  131.      them, and how do I customize them?
  132. 66:  How can I force Emacs to scroll only one line when I move past the
  133.      bottom of the screen?
  134. 67:  How can I replace highlighted text with what I type?
  135. 68:  How can I edit MS-DOS files using Emacs?
  136.  
  137. Bugs/Problems
  138.  
  139. 69:  Does Emacs have problems with files larger than 8 megabytes?
  140. 70:  How do I get rid of the ^M junk in my shell buffer?
  141. 71:  Why do I get "Process shell exited abnormally with code 1"?
  142. 72:  Where is the termcap/terminfo entry for terminal type "emacs"?
  143. 73:  Why does Emacs spontaneously start displaying "I-search:" and beeping?
  144. 74:  Why can't Emacs talk to certain hosts (or certain hostnames)?
  145. 75:  Why does Emacs say "Error in init file"?
  146. 76:  Why does Emacs ignore my X resources (my .Xdefaults file)?
  147. 77:  Why does Emacs take 20 seconds to visit a file?
  148. 78:  How do I edit a file with a `$' in its name?
  149. 79:  Why does shell mode lose track of the shell's current directory?
  150. 80:  Are there any security risks in Emacs?
  151.  
  152. Difficulties Building/Installing/Porting Emacs
  153.  
  154. 81:  How do I install Emacs?
  155. 82:  How do I update Emacs to the latest version?
  156. 83:  What should I do if I have trouble building Emacs?
  157. 84:  Why does linking Emacs with -lX11 fail?
  158.  
  159. Finding/Getting Emacs and Related Packages
  160.  
  161. 85:  Where can I get Emacs on the net (or by snail mail)?
  162. 86:  How do I find a Emacs Lisp package that does XXX?
  163. 87:  Where can I get Emacs Lisp packages that don't come with Emacs?
  164. 88:  How do I submit code to the Emacs Lisp Archive?
  165. 89:  Where can I get other up-to-date GNU stuff?
  166. 90:  What is the difference between Emacs and XEmacs (formerly "Lucid
  167.      Emacs")?
  168. 91:  Where can I get Emacs for my PC running MS-DOS?
  169. 92:  Where can I get Emacs for Microsoft Windows?
  170. 93:  Where can I get Emacs for Windows NT?
  171. 94:  Where can I get Emacs for my PC running OS/2?
  172. 95:  Where can I get Emacs for my Atari ST?
  173. 96:  Where can I get Emacs for my Amiga?
  174. 97:  Where can I get Emacs for NeXTSTEP?
  175. 98:  Where can I get Emacs for my Apple computer?
  176. 99:  Where do I get Emacs that runs on VMS under DECwindows?
  177. 100: Where can I get modes for Lex, Yacc/Bison, Bourne shell, Csh, C++,
  178.      Objective C, Pascal, and Awk?
  179. 101: What is the IP address of XXX.YYY.ZZZ?
  180.  
  181. Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
  182.  
  183. 102: VM (View Mail) -- another mail reader within Emacs
  184. 103: SuperCite -- mail and news citation package within Emacs
  185. 104: Calc -- poor man's Mathematica within Emacs
  186. 105: VIP -- vi emulation for Emacs
  187. 106: AUC TeX -- enhanced LaTeX mode with debugging facilities
  188. 107: Hyperbole -- extensible hypertext management system within Emacs
  189. 108: BBDB -- personal Info Rolodex integrated with mail/news readers
  190. 109: Ispell -- spell checker in C with interface for Emacs
  191. 110: W3-mode -- A World-Wide Web browser inside of Emacs
  192. 111: EDB -- Database program for Emacs; replaces forms editing modes
  193. 112: Patch -- program to apply "diffs" for updating files
  194.  
  195. Changing Key Bindings and Handling Key Binding Problems
  196.  
  197. 113: How do I bind keys (including function keys) to commands?
  198. 114: Why does Emacs say "Key sequence XXX uses invalid prefix characters"?
  199. 115: Why doesn't this [terminal or window-system setup] code work in my
  200.      .emacs file, but it works just fine after Emacs starts up?
  201. 116: How do I use function keys under X Windows?
  202. 117: How do I tell what characters or symbols my function or arrow keys
  203.      emit?
  204. 118: How do I set the X key "translations" for Emacs?
  205. 119: How do I handle C-s and C-q being used for flow control?
  206. 120: How do I bind `C-s' and `C-q' (or any key) if these keys are filtered
  207.      out?
  208. 121: Why does the "Backspace" key invoke help?
  209. 122: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
  210. 123: How do I "swap" two keys?
  211. 124: How do I produce C-XXX with my keyboard?
  212. 125: What if I don't have a Meta key?
  213. 126: What if I don't have an Escape key?
  214. 127: Can I make my "Compose Character" key behave like a Meta key?
  215. 128: How do I bind a combination of modifier key and function key?
  216. 129: Why doesn't my Meta key work in an xterm window?
  217. 130: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0?
  218.  
  219. Using Emacs with Alternate Character Sets
  220.  
  221. 131: How do I make Emacs display 8-bit characters?
  222. 132: How do I input 8-bit characters?
  223. 133: Where can I get an Emacs that handles kanji, Chinese, or other
  224.      character sets?
  225. 134: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
  226.  
  227. Mail and News
  228.  
  229. 135: How do I change the included text prefix in mail/news followups?
  230. 136: How do I save a copy of outgoing mail?
  231. 137: Why doesn't Emacs expand my aliases when sending mail?
  232. 138: Why does Rmail think all my saved messages are one big message?
  233. 139: How can I sort the messages in my Rmail folder?
  234. 140: Why does Rmail need to write to /usr/spool/mail?
  235. 141: How do I recover my mail files after Rmail munges their format?
  236. 142: How do I make Emacs automatically start my mail/news reader?
  237. 143: How do I read news under Emacs?
  238. 144: Why doesn't Gnus work via NNTP?
  239. 145: How do I view news articles with embedded underlining (e.g.,
  240.      ClariNews)?
  241. 146: How do I save all the items of a multi-part posting in Gnus?
  242. 147: Why does Gnus put the subjects in replies beyond the 80th column?
  243. 148: How do I make Gnus start up faster?
  244. 149: How do I catch up all newsgroups in Gnus?
  245. 150: Why can't I kill in Gnus based  on the Newsgroups/Keywords/Control
  246.      headers?
  247. 151: How do I get rid of flashing messages in Gnus for slow connections?
  248. 152: Why is catch up slow in Gnus?
  249. 153: Why does Gnus hang for a long time when posting?
  250. 154: Why don't my news postings in Gnus get past the local machine?
  251. 155: Why doesn't Gnus generate the "Lines:" header?
  252. 156: How do I kill all articles in Gnus but those matching a pattern?
  253. 157: How do I abort sending mail or posting a message?
  254. 158: How do I fix and resubmit a rejected Gnus posting?
  255. 159: How do I automatically mail a copy of a Gnus followup message to
  256.      the original poster?
  257. 160: How do I make Gnus behave more like nn, where I scan all the messages
  258.      and select the ones I want before I read any?
  259.  
  260. ------------------------------------------------------------
  261.  
  262. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
  263. $" to get an overview of just the questions.  Then, when you want to look
  264. at the text of the answers, just type "C-x $".
  265.  
  266. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
  267. C-r if that doesn't work.  Type RET to end the search.
  268.  
  269. If you have w3-mode installed (see question 110), you can visit ftp and
  270. HTTP uniform resource locators (URLs) by placing the cursor on the URL and
  271. typing M-x w3-follow-url-at-point.
  272.  
  273. Full instructions for getting the latest FAQ are in question 22.
  274.  
  275. ------------------------------------------------------------
  276.   This FAQ was last updated on March 10, 1995.
  277.  
  278.  
  279. Notation Used in FAQ
  280.  
  281.   Skip this section and then come back if you don't understand some of the
  282.   later answers.
  283.  
  284. 1:   What do these mean: C-h, M-C-a, RET, "ESC a", etc.?
  285.  
  286.   C-x: press the `x' key while holding down the Control key
  287.  
  288.   M-x: press the `x' key while holding down the Meta key (if your computer
  289.        doesn't have a Meta key, see question 125)
  290.  
  291.   M-C-x: press the `x' key while holding down both Control and Meta
  292.   C-M-x: a synonym for the above
  293.  
  294.   LFD: Linefeed or Newline; same as C-j
  295.   RET: Return, sometimes marked Enter; same as C-m
  296.   DEL: Delete,  usually not the same as Backspace; same as C-? (See
  297.        question 121 if deleting invokes Emacs help)
  298.   ESC: Escape; same as C-[
  299.   TAB: Tab; same as C-i
  300.   SPC: Space bar
  301.  
  302.   Key sequences longer than one key (and some single-key sequences) are
  303.   inside double quotes or on lines by themselves.  Any real spaces in such
  304.   a key sequence should be ignored; only SPC really means press the space
  305.   key.
  306.  
  307.   The ASCII code sent by C-x (except for C-?) is the value that would be
  308.   sent by pressing just `x' minus 96 (or 64 for uppercase `X') and will be
  309.   from 0 to 31.  The ASCII code sent by M-x is the sum of 128 and the ASCII
  310.   code that would be sent by pressing just the `x' key.  Essentially, the
  311.   Control key turns off bits 5 and 6 and the Meta key turns on bit 7.
  312.  
  313.   NOTE: C-? (aka DEL) is ASCII code 127.  It is a misnomer to call C-?  a
  314.   "control" key, since 127 has both bits 5 and 6 turned ON.  Also, on very
  315.   few keyboards does C-? generate ASCII code 127.
  316.  
  317.   For further information, see "Characters" and "Keys" in the on-line
  318.   manual.  (See question 3 if you don't know how.)
  319.  
  320. 2:   What does "M-x command" mean?
  321.  
  322.   "M-x command" means type M-x, then type the name of the command, then
  323.   type RET.  (See question 1 if you're not sure what "M-x" and "RET" mean.)
  324.  
  325.   M-x (by default) invokes the command "execute-extended-command".  This
  326.   command allows you to run any Emacs command if you can remember the
  327.   command's name.  If you can't remember the command's name, you can type
  328.   TAB and SPC for completion, `?' for a list of possibilities, and M-p and
  329.   M-n to see previous commands entered.  An Emacs "command" is any
  330.   "interactive" Emacs function.
  331.  
  332.   NOTE: Your system administrator may have bound other key sequences to
  333.   invoke execute-extended-command.  A function key labeled `Do' is a good
  334.   candidate for this.
  335.  
  336.   To run non-interactive Emacs functions, see question 51.
  337.  
  338. 3:   How do I read topic XXX in the on-line manual?
  339.  
  340.   When we refer you to topic XXX in the on-line manual, you can read this
  341.   manual node inside Emacs (assuming nothing is broken) by typing this:
  342.  
  343.     C-h i m emacs RET m XXX RET
  344.  
  345.   This invokes Info, the GNU hypertext documentation browser.  If you don't
  346.   already know how to use Info, type `?' from within Info.
  347.  
  348.   If we refer to topic XXX:YYY, type this:
  349.  
  350.     C-h i m emacs RET m XXX RET m YYY RET
  351.  
  352.   WARNING: Your system administrator may not have installed the Info files,
  353.   or may have installed them improperly.  In this case you should complain.
  354.  
  355.   See question 15 if you would like a paper copy of the Emacs manual.
  356.  
  357. 4:   What do these mean: etc/SERVICE, src/config.h, lisp/default.el?
  358.  
  359.   These are files that come with Emacs.  The Emacs distribution is divided
  360.   into subdirectories; the important ones are "etc", "lisp", and "src".
  361.  
  362.   If you use Emacs, but don't know where it is kept on your system, start
  363.   Emacs, then type "C-h v data-directory RET".  The directory name
  364.   displayed by this will be the full pathname of the installed "etc"
  365.   directory.
  366.  
  367.   The location of your Info directory (i.e., where on-line documentation is
  368.   stored) is kept in the variable Info-default-directory-list.  Use "C-h v
  369.   Info-default-directory-list RET" to see the contents of this variable,
  370.   which will be a list of directory names.  The last directory in that list
  371.   is probably where most Info files are stored.  By default, Info
  372.   documentation is placed in /usr/local/info.
  373.  
  374.   Some of these files are available individually via FTP or e-mail; see
  375.   question 20.  All are available in the source distribution.
  376.  
  377.   WARNING: Your system administrator may have removed the src directory and
  378.   many files from the etc directory.
  379.  
  380. 5:   What are FSF, LPF, OSF, GNU, RMS, FTP, and GPL?
  381.  
  382.   FSF == Free Software Foundation
  383.   LPF == League for Programming Freedom
  384.   OSF == Open Software Foundation
  385.   GNU == GNU's Not Unix
  386.   RMS == Richard Matthew Stallman
  387.   FTP == File Transfer Protocol
  388.   GPL == GNU General Public License
  389.  
  390.   NOTE: Avoid confusing the FSF, the LPF, and the OSF.  The LPF opposes
  391.   look-and-feel copyrights and software patents.  The FSF aims to make high
  392.   quality free software available for everyone.  The OSF is a consortium of
  393.   computer vendors which develops commercial software for Unix systems.
  394.  
  395.   NOTE: The word "free" in the title of the Free Software Foundation refers
  396.   to "freedom," not "zero dollars."  Anyone can charge any price for
  397.   GPL-covered software that they want to.  However, in practice, the
  398.   freedom enforced by the GPL leads to low prices, because you can always
  399.   get the software for less money from someone else, because everyone has
  400.   the right to resell or give away GPL-covered software.
  401.  
  402.  
  403. General Questions
  404.  
  405. 6:   What is the LPF?
  406.  
  407.   The LPF opposes the expanding danger of software patents and
  408.   look-and-feel copyrights.  To get more information, feel free to contact
  409.   the LPF via e-mail or otherwise.  You may also contact Joe Wells
  410.   <jbw@cs.bu.edu>; he will be happy to talk with you about the LPF.
  411.  
  412.   You can find more information about the LPF in the file etc/LPF.  More
  413.   papers describing the LPF's views are available on the Internet and also
  414.   from the LPF:
  415.  
  416.     ftp://prep.ai.mit.edu/pub/lpf/
  417.     ftp://archive.cis.ohio-state.edu/pub/lpf/
  418.  
  419.   You can also get it via anonymous UUCP from osu-cis!~/lpf/*.
  420.  
  421. 7:   What is the real legal meaning of the GNU copyleft?
  422.  
  423.   The real legal meaning of the GNU General Public License (copyleft) will
  424.   only be known if and when a judge rules on its validity and scope.  There
  425.   has never been a copyright infringement case involving the GPL to set any
  426.   precedents.  Please take any discussion regarding this issue to the
  427.   newsgroup gnu.misc.discuss, which was created to hold the extensive flame
  428.   wars on the subject.
  429.  
  430.   RMS writes:
  431.  
  432.     The legal meaning of the GNU copyleft is less important than the
  433.     spirit, which is that Emacs is a free software project and that work
  434.     pertaining to Emacs should also be free software.  "Free" means that
  435.     all users have the freedom to study, share, change and improve Emacs.
  436.     To make sure everyone has this freedom, pass along source code when you
  437.     distribute any version of Emacs or a related program, and give the
  438.     recipients the same freedom that you enjoyed.
  439.  
  440. 8:   What are appropriate messages for gnu.emacs.help, gnu.emacs.bug,
  441.      comp.emacs, etc.?
  442.  
  443.   The file etc/MAILINGLISTS discusses the purpose of each GNU mailing-list.
  444.   (See question 20 if you want a copy of the file.)  For those lists which
  445.   are gatewayed with newsgroups, it lists both the newsgroup name and the
  446.   mailing list address.
  447.  
  448.   comp.emacs is for discussion of Emacs programs in general.  This includes
  449.   Emacs along with various other implementations, such as JOVE, MicroEmacs,
  450.   Freemacs, MG, Unipress, CCA, and Epsilon.
  451.  
  452.   Many people post Emacs questions to comp.emacs because they don't receive
  453.   any of the gnu.* newsgroups.  Arguments have been made both for and
  454.   against posting GNU-Emacs-specific material to comp.emacs.  You have to
  455.   decide for yourself.
  456.  
  457.   Messages advocating "non-free" software are considered unacceptable on
  458.   any of the gnu.* newsgroups except for gnu.misc.discuss, which was
  459.   created to hold the extensive flame-wars on the subject.  "Non-free"
  460.   software includes any software for which the end user can't freely modify
  461.   the source code and exchange enhancements.  Be careful to remove the
  462.   gnu.* groups from the "Newsgroups:" line when posting a followup that
  463.   recommends such software.
  464.  
  465.   gnu.emacs.bug is a place where bug reports appear, but avoid posting bug
  466.   reports to this newsgroup (see question 10).
  467.  
  468. 9:   Where can I get old postings to gnu.emacs.help and other GNU groups?
  469.  
  470.   The FSF has maintained archives of all of the GNU mailing lists for many
  471.   years, although there may be some unintentional gaps in coverage.  The
  472.   archive is not particularly well organized or easy to retrieve individual
  473.   postings from, but pretty much everything is there.  The archive is
  474.   available at
  475.   
  476.     ftp://prep.ai.mit.edu/pub/gnu/MailingListArchives/
  477.  
  478. 10:  Where should I report bugs and other problems with Emacs?
  479.  
  480.   The correct way to report Emacs bugs is by e-mail to
  481.   bug-gnu-emacs@prep.ai.mit.edu.  Anything sent here also appears in the
  482.   newsgroup gnu.emacs.bug, but please use e-mail instead of news to submit
  483.   the bug report.  This ensures a reliable return address so you can be
  484.   contacted for further details.
  485.  
  486.   Be sure to read the "Bugs" section of the Emacs manual before reporting a
  487.   bug to bug-gnu-emacs!  The manual describes in detail how to submit a
  488.   useful bug report.  (See question 3 if you don't know how to read the
  489.   manual.)
  490.  
  491.   RMS says:
  492.  
  493.     Sending bug reports to help-gnu-emacs (which has the effect of posting
  494.     on gnu.emacs.help) is undesirable because it takes the time of an
  495.     unnecessarily large group of people, most of whom are just users and
  496.     have no idea how to fix these problem.  bug-gnu-emacs reaches a much
  497.     smaller group of people who are more likely to know what to do and have
  498.     expressed a wish to receive more messages about Emacs than the others.
  499.  
  500.   However, RMS says there are circumstances when it is okay to post to
  501.   gnu.emacs.help:
  502.  
  503.     If you have reported a bug and you don't hear about a possible fix,
  504.     then after a suitable delay (such as a week) it is okay to post on
  505.     gnu.emacs.help asking if anyone can help you.
  506.  
  507.   If you are unsure whether you have a bug, RMS describes how to tell:
  508.  
  509.     If Emacs crashes, that is a bug.  If Emacs gets compilation errors
  510.     while building, that is a bug.  If Emacs crashes while building, that
  511.     is a bug.  If Lisp code does not do what the documentation says it
  512.     does, that is a bug.
  513.  
  514. 11:  How do I unsubscribe from this mailing list?
  515.  
  516.   If you are receiving a GNU mailing list named "XXX", you might be able to
  517.   unsubscribe from it by sending a request to the address
  518.   <XXX-request@prep.ai.mit.edu>.  However, this will not work if you are
  519.   not listed on the main mailing list, but instead receive the mail from a
  520.   distribution point.  In that case, you will have to track down at which
  521.   distribution point you are listed.  Inspecting the "Received:" headers on
  522.   the mail messages may help, along with liberal use of the "EXPN" or
  523.   "VRFY" sendmail commands through "telnet <site-address> smtp".  Ask your
  524.   postmaster for help.
  525.  
  526. 12:  What is the current address of the FSF?
  527.  
  528.   E-mail address: gnu@prep.ai.mit.edu 
  529.   Phone number: (617) 876-3296 
  530.  
  531.   Postal address:
  532.   Free Software Foundation, Inc.  
  533.   675 Massachusetts Avenue
  534.   Cambridge, MA 02139, USA
  535.  
  536.   For details on how to order items directly from the FSF, see the file
  537.   etc/ORDERS.
  538.  
  539.  
  540. On-line Help, Printed Manuals, Other Sources of Help
  541.  
  542. 13:  I'm just starting Emacs; how do I do basic editing?
  543.  
  544.   Type "C-h t" to invoke the self-paced tutorial.  Just typing `C-h' enters
  545.   the help system.
  546.  
  547.   WARNING: Your system administrator may have changed `C-h' to act like DEL
  548.   to deal with local keyboards.  You can use M-x help-for-help instead to
  549.   invoke help.  To discover what key (if any) invokes help on your system,
  550.   type "M-x where-is RET help-for-help RET".  This will print a
  551.   comma-separated list of key sequences in the echo area.  Ignore the last
  552.   character in each key sequence listed.  Each of the resulting key
  553.   sequences invokes help.
  554.  
  555.   NOTE: Emacs help works best if it is invoked by a single key whose value
  556.   should be stored in the variable help-char.
  557.  
  558. 14:  How do I find out how to do something in Emacs?
  559.  
  560.   There are several methods for finding out how to do things in Emacs.
  561.  
  562.   * The complete text of the Emacs manual is available on-line via the Info
  563.     hypertext reader.  Type "C-h i" to invoke Info.  Typing `h' immediately
  564.     after entering Info will provide a short tutorial on how to use it.
  565.  
  566.   * You can order a hardcopy of the manual from the FSF.  See question 15.
  567.  
  568.   * You can get a printed reference card listing commands and keys to
  569.     invoke them.  You can order one from the FSF for $1 (or 10 for $5), or
  570.     you can print your own from the etc/refcard.tex or etc/refcard.ps files
  571.     in the Emacs distribution.
  572.  
  573.   * You can list all of the commands whose names contain a certain word
  574.     (actually which match a regular expression) using "C-h a" (M-x
  575.     command-apropos).
  576.  
  577.   * You can list all of the functions and variables whose names contain a
  578.     certain word using M-x apropos.
  579.  
  580.   * There are many other commands in Emacs for getting help and
  581.     information.  To get a list of these commands, type `?' after `C-h'.
  582.  
  583. 15:  How do I get a printed copy of the Emacs manual?
  584.  
  585.   You can order a printed copy of the Emacs manual from the FSF.  For
  586.   details see the file etc/ORDERS.
  587.  
  588.   The full TeX source for the manual also comes in the "man" directory of
  589.   the Emacs distribution, if you're daring enough to try to print out this
  590.   440-page manual yourself (see question 18).
  591.  
  592.   If you absolutely have to print your own copy, and you don't have TeX,
  593.   you can get a PostScript version from
  594.  
  595.     ftp://ftp.cs.ubc.ca/pub/archive/gnu/manuals_ps/emacs-19.21.ps.gz
  596.  
  597.   This site requests that you please *confine any major ftping to late
  598.   evenings or early mornings, local time* (Pacific time zone, GMT-8).  A
  599.   DVI version is also available from:
  600.  
  601.     ftp://prep.ai.mit.edu/pub/gnu/emacs-manual-6.0.dvi.gz
  602.  
  603.   and all prep mirrors (See question 89 for a list).
  604.  
  605.   A WWW version of the Emacs manual is available at
  606.  
  607.     http://asis01.cern.ch/infohtml/emacs/emacs.html
  608.  
  609.   See also question 14 for how to view the manual on-line.
  610.  
  611. 16:  Where can I get documentation on Emacs Lisp?
  612.  
  613.   Within Emacs, you can type "C-h f" to get the documentation for a
  614.   function, "C-h v" for a variable.
  615.  
  616.   For more information, obtain the Emacs Lisp Reference Manual.  Details on
  617.   ordering it from FSF are in file etc/ORDERS.
  618.  
  619.   The Emacs Lisp Reference Manual is also available on-line, in Info
  620.   format.  Texinfo source for the manual (along with pregenerated Info
  621.   files) is available at
  622.  
  623.     ftp://prep.ai.mit.edu/pub/gnu/elisp-manual-19-2.3.tar.gz
  624.  
  625.   and all prep mirrors (See question 89 for a list).  See question 17 if
  626.   you want to install the Info files, or question 18 if you want to use the
  627.   Texinfo source to print the manual yourself.
  628.  
  629.   A WWW version of the Emacs Lisp Reference Manual is available at
  630.  
  631.     http://www.cs.indiana.edu/usr/local/www/elisp/lispref/elisp_toc.html
  632.  
  633. 17:  How do I install a piece of Texinfo documentation?
  634.  
  635.   First, you must turn the Texinfo files into Info files.  You may do this
  636.   within Emacs, using "M-x texinfo-format-buffer", or with the stand-alone
  637.   "makeinfo" program, available as part of the latest Texinfo package at
  638.  
  639.     ftp://prep.ai.mit.edu/pub/gnu/texinfo-3.1.tar.gz
  640.  
  641.   and all prep mirrors (see question 89 for a list).
  642.  
  643.   For information about the Texinfo format, read the Texinfo manual which
  644.   comes with Emacs.  This manual also comes installed in Info format, so
  645.   you can read it on-line.
  646.  
  647.   Neither texinfo-format-buffer nor makeinfo installs the resulting Info
  648.   files in Emacs's Info tree.  To install Info files:
  649.  
  650.   1. Move the files to the "info" directory in the installed Emacs
  651.      distribution.  See question 4 if you don't know where that is.
  652.  
  653.   2. Edit the file info/dir in the installed Emacs distribution, and add a
  654.      line for the top level node in the Info package that you are
  655.      installing.  Follow the examples already in this file.  The format is:
  656.  
  657.        * Topic: (relative-pathname).  Short description of topic.
  658.  
  659.   If you want to install Info files and you don't have the necessary
  660.   privileges, you have several options:
  661.  
  662.   * Info files don't actually need to be installed before being used.  You
  663.     can feed a file name to the Info-goto-node command (invoked by pressing
  664.     `g' in Info mode) by typing the name of the file in parentheses.  This
  665.     goes to the node named "Top" in that file.  For example, to view a Info
  666.     file named "XXX" in your home directory, you can type this:
  667.  
  668.       C-h i g (~/XXX) RET
  669.  
  670.   * You can create your own Info directory.  You can tell Emacs where the
  671.     Info directory is by adding its pathname to the value of the variable
  672.     Info-default-directory-list.  For example, to use a private Info
  673.     directory which is a subdirectory of your home directory named "Info",
  674.     you could put this in your .emacs file:
  675.  
  676.       (setq Info-default-directory-list
  677.             (cons "~/Info" Info-default-directory-list))
  678.  
  679.     You will need a top-level Info file named "dir" in this directory which
  680.     has everything the system dir file has in it, except it should list
  681.     only entries for Info files in that directory.  You might not need it
  682.     if all files in this directory were referenced by other "dir" files.
  683.     The node lists from all dir files in Info-default-directory-list are
  684.     merged by the Info system.
  685.  
  686. 18:  How do I print a Texinfo file?
  687.  
  688.   NOTE: You can't get nicely printed output from Info files; you must still
  689.   have the original Texinfo source file for the manual you want to print.
  690.  
  691.   Assuming you have TeX installed on your system, follow these steps:
  692.  
  693.   1. Make sure the first line of the Texinfo file looks like this:
  694.  
  695.        \input texinfo
  696.  
  697.      You may need to change "texinfo" to the full pathname of the
  698.      texinfo.tex file, which comes with Emacs as man/texinfo.tex (or copy
  699.      or link it into the current directory).
  700.  
  701.   2. tex XXX.texinfo
  702.  
  703.   3. texindex XXX.??
  704.  
  705.      The texindex program comes with Emacs as man/texindex.c.
  706.  
  707.   4. tex XXX.texinfo
  708.  
  709.   5. Print the DVI file XXX.dvi in the normal way for printing DVI files at
  710.      your site.
  711.  
  712.   To get more general instructions, retrieve the latest Texinfo package
  713.   mentioned in question 17.
  714.  
  715. 19:  Can I view Info files without using Emacs?
  716.  
  717.   Yes.  Here are some alternative programs:
  718.  
  719.   * Info, a stand-alone version of the Info program, comes as part of the
  720.     Texinfo package.  See question 17 for details.
  721.  
  722.   * Xinfo, a stand-alone version of the Info program that runs under X
  723.     Windows.  You can get it at
  724.  
  725.       ftp://prep.ai.mit.edu/pub/gnu/xinfo-1.01.01.tar.gz
  726.  
  727.     and all prep mirrors (See question 89 for a list).
  728.  
  729.   * Tkinfo, an Info viewer that runs under X Windows and uses Tcl/Tk.  You
  730.     can get Tkinfo at
  731.  
  732.       ftp://ptolemy.eecs.berkeley.edu/pub/misc/tkinfo-0.6.tar.Z
  733.       ftp://ftp.aud.alcatel.com/tcl/code/tkinfo-0.6.tar.gz
  734.  
  735. 20:  What informational files are available for Emacs?
  736.  
  737.   This isn't a frequently asked question, but it should be!  A variety of
  738.   informational files about Emacs and relevant aspects of the GNU project
  739.   are available for you to read.
  740.  
  741.   The following files are available in the "etc" directory of the Emacs
  742.   distribution (see question 4 if you're not sure where that is).
  743.  
  744.     COPYING -- Emacs General Public License
  745.     DISTRIB -- Emacs Availability Information, including the popular
  746.               "Free Software Foundation Order Form"
  747.     FAQ -- Emacs Frequently Asked Questions (You're reading it)
  748.     FTP -- How to get GNU Software by Internet FTP or by UUCP
  749.     GNU -- The GNU Manifesto
  750.     INTERVIEW -- Richard Stallman discusses his public-domain
  751.                  UNIX-compatible software system with BYTE editors
  752.     LPF -- Why you should join the League for Programming Freedom
  753.     MACHINES -- Status of Emacs on Various Machines and Systems
  754.     MAILINGLISTS -- GNU Project Electronic Mailing Lists
  755.     NEWS -- Emacs news, a history of user-visible changes
  756.     SERVICE -- GNU Service Directory
  757.     SUN-SUPPORT -- including "Using Emacstool with GNU Emacs"
  758.  
  759.   Latest versions of the above files also available at
  760.  
  761.     ftp://prep.ai.mit.edu/pub/gnu/GNUinfo/
  762.  
  763.   These additional files are available from the FSF via e-mail:
  764.  
  765.   * GNU's Bulletin, June 1994
  766.       GNU's Who
  767.       Administrivia and Copyright
  768.       What Is the FSF?
  769.       What Is Copyleft?
  770.       What Is GNU?
  771.       What Is the Hurd?
  772.       Free Software Redistributors Donate
  773.       Help from Free Software Companies
  774.       Free Software Support
  775.       What Is the LPF?
  776.       GNU and Other Free Software in Japan
  777.       Announcing the Dictionary Project
  778.       GNUs Flashes
  779.       Forthcoming GNUs
  780.       Freely Available Texts
  781.       GNU Documentation
  782.       GNU Software
  783.       Program/Package Cross Reference
  784.       Tapes
  785.       CD-ROMs
  786.       MS-DOS Diskettes
  787.       Tape & CD-ROM Subscription Service
  788.       The Deluxe Distribution
  789.       How to Get GNU Software
  790.       Other GPLed Software
  791.       Free Software for Microcomputers
  792.       FSF T-shirt
  793.       Project GNU Wish List
  794.       Thank GNUs
  795.       Donations Translate Into Free Software
  796.       Cygnus Matches Donations!
  797.       Free Software Foundation Order Form
  798.       Address Page
  799.   * Legal issues about contributing code to GNU
  800.   * GNU Project Status Report
  801.  
  802.   A collection of past GNU's Bulletins (as well as other GNU-related
  803.   information) is available at
  804.  
  805.     http://www.cs.pdx.edu/~trent/gnu/gnu.html
  806.  
  807. 21:  Where can I get help in installing Emacs?
  808.  
  809.   See question 81 for some basic installation hints, and question 83 if you
  810.   have problems with the installation.
  811.  
  812.   The file etc/SERVICE (see question 4 if you're not sure where that is)
  813.   lists companies and individuals willing to sell you help in installing or
  814.   using Emacs.  An up-to-date version this file is available on
  815.   prep.ai.mit.edu (see question 20).
  816.  
  817. 22:  Where can I get the latest version of this document (the FAQ list)?
  818.  
  819.   The Emacs FAQ is available in several ways:
  820.  
  821.   * Via USENET.  If you can read news, the FAQ should be available in your
  822.     news spool, in both the gnu.emacs.help and comp.emacs newsgroups.
  823.     Every news reader should allow you to read any news article that is
  824.     still in the news spool, even if you have read the article before.  You
  825.     may need to read the instructions for your news reader to discover how
  826.     to do this.  In rn, this command will do this for you at the article
  827.     selection level:
  828.  
  829.       ?GNU Emacs Frequently Asked Questions?rc:m
  830.  
  831.     In Gnus, you should type "C-u c-x c-s" from the *Summary* buffer or
  832.     "C-u SPC" from the *Newsgroup* buffer to view all articles in a
  833.     newsgroup.
  834.  
  835.     If the FAQ articles have expired and been deleted from your news spool,
  836.     it might (or might not) do some good to complain to your news
  837.     administrator, because the most recent FAQ should not expire for a
  838.     while.
  839.  
  840.   * Via anonymous FTP.  You can always fetch the latest FAQ at
  841.  
  842.       ftp://the-tech.mit.edu/pub/GNU-Emacs/faq
  843.  
  844.   * In the Emacs distribution.  Since Emacs 18.56, the latest available
  845.     version of the FAQ at the time of release has been part of the Emacs
  846.     distribution as file etc/FAQ (see question 4).
  847.  
  848.   * Via the World-Wide Web.  Point your favorite Web browser (Lynx, Mosaic,
  849.     Netscape, w3-mode) at one of the following:
  850.  
  851.     http://scwww.ucs.indiana.edu/FAQ/Emacs/
  852.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/GNU-Emacs-FAQ/top.html
  853.     http://www.eecs.nwu.edu/emacs/faq/index.html
  854.  
  855.   * Via anonymous ftp and e-mail from rtfm.mit.edu, the main repository for
  856.     FAQs and other items posted to news.answers.  The Emacs FAQs are
  857.     available at
  858.  
  859.     ftp://rtfm.mit.edu/pub/usenet/comp.emacs/
  860.  
  861.     If you do not have access to anonymous FTP, you can access the archives
  862.     using the rtfm.mit.edu mail server.  The Emacs FAQ can be retrieved by
  863.     sending mail to mail-server@rtfm.mit.edu with a blank subject and
  864.     containing
  865.  
  866.       send usenet/news.answers/GNU-Emacs-FAQ/part1
  867.       send usenet/news.answers/GNU-Emacs-FAQ/part2
  868.       send usenet/news.answers/GNU-Emacs-FAQ/part3
  869.       send usenet/news.answers/GNU-Emacs-FAQ/part4
  870.       send usenet/news.answers/GNU-Emacs-FAQ/part5
  871.  
  872.     For more information, send email to mail-server@rtfm.mit.edu with
  873.     "help" and "index" in the body on separate lines.
  874.    
  875.   * As the very last resort, you can e-mail a request to
  876.     gnu-emacs-faq-maintainers@bigbird.bu.edu.  Don't do this unless you
  877.     have made a serious effort to obtain the FAQ list via one of the
  878.     methods listed above.
  879.  
  880. Archive-name: GNU-Emacs-FAQ/part2
  881.  
  882. ------------------------------------------------------------
  883.  
  884. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
  885. $" to get an overview of just the questions.  Then, when you want to look
  886. at the text of the answers, just type "C-x $".
  887.  
  888. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
  889. C-r if that doesn't work.  Type RET to end the search.
  890.  
  891. If you have w3-mode installed (see question 110), you can visit ftp and
  892. HTTP uniform resource locators (URLs) by placing the cursor on the URL and
  893. typing M-x w3-follow-url-at-point.
  894.  
  895. Full instructions for getting the latest FAQ are in question 22.
  896.  
  897. ------------------------------------------------------------
  898.  
  899.  
  900.  
  901. Status of Emacs
  902.  
  903. 23:  Where does the name "Emacs" come from?
  904.  
  905.   Emacs originally was an acronym for Editor MACroS.  RMS says he "picked
  906.   the name Emacs because `E' was not in use as an abbreviation on ITS at
  907.   the time."  The first Emacs was a set of macros written in 1976 at MIT by
  908.   RMS for the editor TECO (Text Editor and COrrector, originally Tape
  909.   Editor and COrrector) under ITS on a PDP-10.  RMS had already extended
  910.   TECO with a "real-time" full screen mode with active keys.  Emacs was
  911.   started by Guy Steele <gls@think.com> as a project to unify the many
  912.   divergent TECO command sets and key bindings at MIT.
  913.  
  914.   Many people have said that TECO code looks a lot like line noise.  See
  915.   alt.lang.teco if you are interested.  Someone has written a TECO
  916.   implementation in Emacs Lisp (to find it, see question 87); it would be
  917.   an interesting project to run the original TECO Emacs inside of Emacs.
  918.  
  919.   For some not-so-serious alternative reasons for Emacs to have that name,
  920.   check out etc/JOKES (see question 4).
  921.  
  922. 24:  What is the latest version of Emacs?
  923.  
  924.   Emacs 19.28 is the current version as of this writing.
  925.  
  926. 25:  What is different about Emacs 19?
  927.  
  928.   To find out what has changed in recent versions, type C-h n (M-x
  929.   view-emacs-news).  The oldest changes are at the bottom of the file, so
  930.   you might want to read it starting there, rather than at the top.
  931.  
  932.   The most obvious changes have to do with the user interface -- Emacs 19
  933.   is fully X-aware, and provides pull-down menus (see question 63) and
  934.   scroll bars.  Emacs 19 also supports fonts and colors, including
  935.   context-specific highlighting of source code and other types of buffers
  936.   (see question 65).
  937.  
  938.   Other changes include a line number mode, which displays the current line
  939.   number in the mode line, and default bindings for arrow and paging keys
  940.   that work.
  941.  
  942.   Lower-level changes include a smarter memory allocation scheme (Emacs now
  943.   returns memory to the operating system when you kill buffers), a better
  944.   byte-compiler, and a source-level Emacs Lisp debugger.
  945.  
  946.   There are also a number of new Lisp packages, ranging from dunnet (an
  947.   Adventure-like program) to mldrag (allows you to drag the mode line up
  948.   and down with mouse buttons) to gud (Grand Unified Debugger mode, for
  949.   many flavors of debuggers).  A number of older Lisp packages, such as
  950.   Gnus, SuperCite and the calendar/diary, have been updated and enhanced to
  951.   work with Emacs 19, and are now included with the standard distribution.
  952.  
  953.  
  954. Common Things People Want To Do
  955.  
  956. 26:  How do I set up a .emacs file properly?
  957.  
  958.   See "Init File" in the on-line manual.
  959.  
  960.   WARNING: In general, new Emacs users should not have .emacs files,
  961.   because it causes confusing non-standard behavior.  Then they send
  962.   questions to help-gnu-emacs asking why Emacs isn't behaving as
  963.   documented.  :-)
  964.  
  965. 27:  How do I debug a .emacs file?
  966.  
  967.   Start Emacs with the "-debug-init" command-line option.  This enables the
  968.   Emacs Lisp debugger before evaluating your .emacs file, and places you in
  969.   the debugger if something goes wrong.  The top line in the trace-back
  970.   buffer will be the error message, and the second or third line of that
  971.   buffer will display the Lisp code from your .emacs file that caused the
  972.   problem.
  973.  
  974.   You can also evaluate an individual function or argument to a function in
  975.   your .emacs file by moving the cursor to the end of the function or
  976.   argument and typing "C-x C-e" (M-x eval-last-sexp).
  977.  
  978.   Use "C-h v" (M-x describe-variable) to check the value of variables which
  979.   you are trying to set or use.
  980.  
  981. 28:  How do I make Emacs display the current line (or column) number?
  982.  
  983.   To find out what line of the buffer you are on right now, do "M-x
  984.   what-line".  Use "M-x goto-line" to go to a specific line.  To find the
  985.   current column number (as well as some other information), type "C-x ="
  986.   (M-x what-cursor-position).
  987.  
  988.   If you use these commands often, you might want to bind them to a key.
  989.   See question 113 for instructions on how to do that.
  990.  
  991.   Typing "C-x l" (or M-x count-lines-page) will also tell you what line you
  992.   are on, provided the buffer isn't separated into "pages" with C-l
  993.   characters.  In that case, it will only tell you what line of the current
  994.   "page" you are on.
  995.  
  996.   To have Emacs automatically display the current line number of the point
  997.   in the mode line, do "M-x line-number-mode".  You can also put the form
  998.  
  999.     (setq line-number-mode t)
  1000.  
  1001.   in your .emacs file to achieve this whenever you start Emacs.  Note that
  1002.   Emacs will not display the line number if the buffer is larger than the
  1003.   value of the variable line-number-display-limit.
  1004.  
  1005.   The "column" package by Per Abrahamsen <abraham@iesd.auc.dk> permits the
  1006.   line and column numbers to be displayed in the mode line; see question 87
  1007.   for how to get this package.
  1008.  
  1009.   None of the vi emulation modes provide the "set number" capability of vi
  1010.   (as far as we know).
  1011.  
  1012. 29:  How do I turn on abbrevs by default just in mode XXX?
  1013.  
  1014.   Put this in your .emacs file:
  1015.  
  1016.     (condition-case ()
  1017.        (quietly-read-abbrev-file)
  1018.       (file-error nil))
  1019.  
  1020.     (add-hook 'XXX-mode-hook
  1021.               (function
  1022.                 (lambda ()
  1023.                  (setq abbrev-mode t))))
  1024.  
  1025. 30:  How do I turn on auto-fill mode by default?
  1026.  
  1027.   To turn on auto-fill mode just once for one buffer, use "M-x
  1028.   auto-fill-mode".
  1029.  
  1030.   To turn it on for every buffer in a certain mode, you must use the hook
  1031.   for that mode.  For example, to turn on auto-fill mode for all text
  1032.   buffers, including the following in your .emacs file:
  1033.  
  1034.     (add-hook 'text-mode-hook 'turn-on-auto-fill)
  1035.  
  1036.   If you want auto-fill mode on in all major modes, do this:
  1037.  
  1038.     (setq-default auto-fill-hook 'do-auto-fill)
  1039.  
  1040. 31:  How do I make Emacs use a certain major mode for certain files?
  1041.  
  1042.   If you want to use XXX mode for all files which end with the extension
  1043.   ".YYY", this will do it for you:
  1044.  
  1045.     (setq auto-mode-alist (cons '("\\.YYY\\'" . XXX-mode) auto-mode-alist))
  1046.  
  1047.   Otherwise put this somewhere in the first line of any file you want to
  1048.   edit in XXX mode (in the second line, if the first line begins with
  1049.   "#!"):
  1050.  
  1051.     -*-XXX-*-
  1052.  
  1053.   Emacs 19 also includes a new variable, interpreter-mode-alist, that
  1054.   specifies which mode to use when loading a shell script.  (Emacs
  1055.   determines which interpreter you're using by examining the first line of
  1056.   the file.)  This feature only applies when the file name doesn't indicate
  1057.   which mode to use.  Use "C-h v" (or M-x describe-variable) on
  1058.   interpreter-mode-alist to learn more.
  1059.  
  1060. 32:  How do I search for, delete, or replace unprintable (8-bit or control)
  1061.      characters?
  1062.  
  1063.   To search for a single character that appears in the buffer as, for
  1064.   example, "\237", you can type "C-s C-q 2 3 7".  (This assumes the value
  1065.   of search-quote-char is 17 (i.e., `C-q').)  Searching for ALL unprintable
  1066.   characters is best done with a regular expression ("regexp") search.  The
  1067.   easiest regexp to use for the unprintable chars is the complement of the
  1068.   regexp for the printable chars.
  1069.  
  1070.     Regexp for the printable chars: [\t\n\r\f -~] 
  1071.     Regexp for the unprintable chars: [^\t\n\r\f -~]
  1072.  
  1073.   To type these special characters in an interactive argument to
  1074.   isearch-forward-regexp or re-search-forward, you need to use C-q.  (`\t',
  1075.   `\n', `\r', and `\f' stand respectively for TAB, LFD, RET, and C-l.)  So,
  1076.   to search for unprintable characters using re-search-forward:
  1077.  
  1078.     M-x re-search-forward RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET
  1079.  
  1080.   Using isearch-forward-regexp:
  1081.  
  1082.     M-C-s [^ TAB RET C-q RET C-q C-l SPC -~]
  1083.  
  1084.   To delete all unprintable characters, simply use replace-regexp:
  1085.  
  1086.     M-x replace-regexp RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET RET
  1087.  
  1088.   Replacing is similar to the above.  To replace all unprintable characters
  1089.   with a colon, use:
  1090.  
  1091.     M-x replace-regexp RET [^ TAB C-q LFD C-q RET C-q C-l SPC -~] RET : RET
  1092.  
  1093.   NOTE: * You don't need to quote TAB with either isearch or typing
  1094.           something in the minibuffer.
  1095.  
  1096. 33:  How can I highlight a region of text in Emacs?
  1097.  
  1098.   If you are using a windowing system such as X, you can cause the region
  1099.   to be highlighted when the mark is active by including
  1100.  
  1101.         (transient-mark-mode t)
  1102.  
  1103.   in your .emacs file.  (Also see question 65.)
  1104.  
  1105. 34:  How do I control Emacs's case-sensitivity when searching/replacing?
  1106.  
  1107.   For searching, the value of the variable case-fold-search determines
  1108.   whether they are case sensitive:
  1109.  
  1110.     (setq case-fold-search nil) ; make searches case sensitive
  1111.     (setq case-fold-search t)   ; make searches case insensitive
  1112.  
  1113.   Similarly, for replacing the variable case-replace determines whether
  1114.   replacements preserve case.
  1115.  
  1116.   To change the case sensitivity just for one major mode, use the major
  1117.   mode's hook.  For example:
  1118.  
  1119.     (add-hook 'XXX-mode-hook
  1120.           (function
  1121.            (lambda ()
  1122.              (setq case-fold-search nil))))
  1123.  
  1124. 35:  How do I make Emacs wrap words for me?
  1125.  
  1126.   Use auto-fill mode, activated by typing "M-x auto-fill-mode".  The
  1127.   default maximum line width is 70, determined by the variable fill-column.
  1128.   To learn how to turn this on automatically, see question 30.
  1129.  
  1130. 36:  Where can I get a better spelling checker for Emacs?
  1131.  
  1132.   Use Ispell.  See question 109.
  1133.  
  1134. 37:  How can I spell-check TeX or *roff documents?
  1135.  
  1136.   Use Ispell.  See question 109.  Ispell can handle TeX and *roff
  1137.   documents.
  1138.  
  1139. 38:  How do I change load-path?
  1140.  
  1141.   In general, you should only *add* to the load-path.  You can add
  1142.   directory /XXX/YYY to the load path like this:
  1143.  
  1144.     (setq load-path (cons "/XXX/YYY/" load-path))
  1145.  
  1146.   To do this relative to your home directory:
  1147.  
  1148.     (setq load-path (cons "~/YYY/" load-path)
  1149.  
  1150. 39:  How do I use an already running Emacs from another window?
  1151.  
  1152.   Emacsclient, which comes with Emacs, is for editing a file using an
  1153.   already running Emacs rather than starting up a new Emacs.  It does this
  1154.   by sending a request to the already running Emacs, which must be
  1155.   expecting the request.
  1156.  
  1157.   * Setup
  1158.  
  1159.     Emacs must have executed the "server-start" function for emacsclient to
  1160.     work.  This can be done either by a command line option:
  1161.  
  1162.       emacs -f server-start
  1163.  
  1164.     or by invoking server-start from the .emacs file:
  1165.  
  1166.       (if (some conditions are met) (server-start))
  1167.  
  1168.     When this is done, Emacs starts a subprocess running a program called
  1169.     "server".  "server" creates a Unix domain socket in the user's home
  1170.     directory named .emacs_server.
  1171.  
  1172.     To get your news reader, mail reader, etc., to invoke emacsclient, try
  1173.     setting the environment variable EDITOR (or sometimes VISUAL) to the
  1174.     value "emacsclient".  You may have to specify the full pathname of the
  1175.     emacsclient program instead.  Examples:
  1176.  
  1177.       # csh commands:
  1178.       setenv EDITOR emacsclient
  1179.       setenv EDITOR /usr/local/emacs/etc/emacsclient  # using full pathname
  1180.  
  1181.       # sh command:
  1182.       EDITOR=emacsclient ; export EDITOR
  1183.  
  1184.   * Normal use
  1185.  
  1186.     When emacsclient is run, it connects to the ".emacs_server" socket and
  1187.     passes its command line options to "server".  When "server" receives
  1188.     these requests, it sends this information on the the Emacs process,
  1189.     which at the next opportunity will visit the files specified.  (Line
  1190.     numbers can be specified just like with Emacs.)  The user will have to
  1191.     switch to the Emacs window by hand.  When the user is done editing a
  1192.     file, the user can type "C-x #" (or M-x server-edit) to indicate this.
  1193.     If there is another buffer requested by emacsclient, Emacs will switch
  1194.     to it; otherwise emacsclient will exit, signaling the calling program
  1195.     to continue.
  1196.  
  1197.     NOTE: "emacsclient" and "server" must be running on machines which
  1198.     share the same filesystem for this to work.  The pathnames that
  1199.     emacsclient specifies should be correct for the filesystem that the
  1200.     Emacs process sees.  The Emacs process should not be suspended at the
  1201.     time emacsclient is invoked.  emacsclient should either be invoked from
  1202.     another X window or from a shell window inside Emacs itself.
  1203.  
  1204.     There is an enhanced version of emacsclient/server called "gnuserv" by
  1205.     Andy Norman <ange@hplb.hpl.hp.com> which is available in the Emacs Lisp
  1206.     Archive (see question 87).  Gnuserv uses Internet domain sockets, so it
  1207.     can work across most network connections.  It also supports the
  1208.     execution of arbitrary Emacs Lisp forms and does not require the client
  1209.     program to wait for completion.
  1210.  
  1211. 40:  How do I make Emacs recognize my compiler's funny error messages?
  1212.  
  1213.   The variable compilation-error-regexp-alist helps control how Emacs
  1214.   parses your compiler output.  It is a list of triples of the form:
  1215.  
  1216.         (REGEXP FILE-IDX LINE-IDX)
  1217.  
  1218.   where REGEXP, FILE-IDX and LINE-IDX are strings.  To help determine what
  1219.   the constituent elements should be, load compile.el and then use
  1220.  
  1221.         C-h v compilation-error-regexp-alist RET
  1222.  
  1223.   to see the current value.  A good idea is to look at compile.el itself as
  1224.   the comments included for this variable are quite useful -- the regular
  1225.   expressions required for your compiler's output may be very close to one
  1226.   already provided.  Once you have determined the proper regexps, use the
  1227.   following to inform Emacs of your changes:
  1228.  
  1229.         (setq compilation-error-regexp-alist
  1230.               (cons '(REGEXP FILE-IDX LINE-IDX)
  1231.                  compilation-error-regexp-alist))
  1232.  
  1233. 41:  How do I indent switch statements like this?
  1234.  
  1235.   Many people want to indent their switch statements like this:
  1236.  
  1237.     f()
  1238.     {
  1239.       switch(x) {
  1240.         case A:
  1241.           x1;
  1242.           break;
  1243.         case B:
  1244.           x2;
  1245.           break;
  1246.         default:
  1247.           x3;
  1248.       }
  1249.     }
  1250.  
  1251.   The solution at first appears to be: set c-indent-level to 4 and
  1252.   c-label-offset to -2.  However, this will give you an indentation spacing
  1253.   of four instead of two.
  1254.  
  1255.   The solution is to use cc-mode (bundled with Emacs 19, but not the
  1256.   default mode) and add the following line:
  1257.  
  1258.     (c-set-offset 'case-label '+)
  1259.  
  1260.   There appears to be no way to do this with the old c-mode.
  1261.  
  1262. 42:  How can I make Emacs automatically scroll horizontally?
  1263.  
  1264.   Use hscroll.el by Wayne Mesard <wmesard@esd.sgi.com>.  The current
  1265.   version of hscroll is 1.5 (November 1993), and should be included in a
  1266.   future Emacs distribution.  If you cannot find the package, write to
  1267.   Wayne directly.
  1268.  
  1269.   NOTE: The version at the Emacs Lisp Archive is out of date.  Check the
  1270.   version number before installing any copies of hscroll you might find!
  1271.  
  1272. 43:  How do I make Emacs "typeover" or "overwrite" instead of inserting?
  1273.  
  1274.   M-x overwrite-mode (a minor mode).  This toggles overwrite-mode on and
  1275.   off, so exiting from overwrite-mode is as easy as another M-x
  1276.   overwrite-mode.
  1277.  
  1278.   On some workstations, the "Insert" key toggles overwrite-mode on and off.
  1279.  
  1280. 44:  How do I stop Emacs from beeping on a terminal?
  1281.  
  1282.   Martin R. Frank <martin@cc.gatech.edu> writes:
  1283.  
  1284.     Tell Emacs to use the "visible bell" instead of the audible bell, and
  1285.     set the visible bell to nothing.
  1286.  
  1287.     That is, put the following in your TERMCAP environment variable
  1288.     (assuming you have one):
  1289.  
  1290.       ... :vb=: ...                     
  1291.  
  1292.     And evaluate the following Lisp form:
  1293.  
  1294.       (setq visible-bell t)
  1295.  
  1296. 45:  How do I turn down the bell volume in Emacs running under X Windows?
  1297.  
  1298.   You can adjust the bell volume and duration for all programs with the
  1299.   shell command xset.
  1300.   
  1301.   Invoking xset without any arguments produces some basic information,
  1302.   including the following:
  1303.  
  1304.     usage:  xset [-display host:dpy] option ...
  1305.       To turn bell off:
  1306.           -b                b off               b 0
  1307.       To set bell volume, pitch and duration:
  1308.            b [vol [pitch [dur]]]          b on
  1309.  
  1310. 46:  How do I tell Emacs to automatically indent a new line to the
  1311.      indentation of the previous line?
  1312.  
  1313.   One solution is Indented Text Mode (M-x indented-text-mode).
  1314.  
  1315.   If you have auto-fill mode on (see question 30), you can tell Emacs to
  1316.   prefix every line with a certain character sequence, the "fill prefix."
  1317.   Type the prefix at the beginning of a line, position point after it, and
  1318.   then type "C-x ." (set-fill-prefix) to set the fill prefix.  Thereafter,
  1319.   auto-filling will automatically put the fill prefix at the beginning of
  1320.   new lines, and M-q (fill-paragraph) will maintain any fill prefix when
  1321.   refilling the paragraph.
  1322.  
  1323.   NOTE: If you have paragraphs with different levels of indentation, you
  1324.   will have to set the fill prefix to the correct value each time you move
  1325.   to a new paragraph.  To avoid this hassle, try one of the many packages
  1326.   available from the Emacs Lisp Archive (see question 87.)  Look up "fill"
  1327.   and "indent" in the Lisp Code Directory for guidance.
  1328.  
  1329. 47:  How do I show which parenthesis matches the one I'm looking at?
  1330.  
  1331.   Emacs 19 comes with paren.el, which (when loaded) will automatically
  1332.   highlight matching parentheses whenever point (i.e., the cursor) is
  1333.   located over one.  To load paren automatically, include the line
  1334.  
  1335.     (require 'paren)
  1336.  
  1337.   in your .emacs file.
  1338.  
  1339.   Alternatives to paren include:
  1340.  
  1341.   * If you're looking at a right parenthesis (or brace or bracket) you can
  1342.     delete it and reinsert it.  Emacs will blink the cursor on the matching
  1343.     parenthesis.
  1344.  
  1345.   * M-C-f (forward-sexp) and M-C-b (backward-sexp) will skip over one set
  1346.     of balanced parentheses, so you can see which parentheses match.  (You
  1347.     can train it to skip over balanced brackets and braces at the same time
  1348.     by modifying the syntax table.)
  1349.  
  1350.   * Here is some Emacs Lisp that will make the % key show the matching
  1351.     parenthesis, like in vi.  In addition, if the cursor isn't over a
  1352.     parenthesis, it simply inserts a % like normal.
  1353.  
  1354.       ;; By an unknown contributor
  1355.  
  1356.       (global-set-key "%" 'match-paren)
  1357.  
  1358.       (defun match-paren (arg)
  1359.         "Go to the matching parenthesis if on parenthesis otherwise insert %."
  1360.         (interactive "p")
  1361.         (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
  1362.               ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
  1363.               (t (self-insert-command (or arg 1)))))
  1364.  
  1365. 48:  In C mode, can I show just the lines that will be left after #ifdef
  1366.      commands are handled by the compiler?
  1367.  
  1368.   M-x hide-ifdef-mode.  (This is a minor mode.)  You might also want to try
  1369.   cpp.el, available at the Emacs Lisp Archive (see question 87).
  1370.  
  1371. 49:  Is there an equivalent to the `.' (dot) command of vi?
  1372.  
  1373.   (`.' is the redo command in vi.  It redoes the last insertion/deletion.)
  1374.  
  1375.   No, not really, because Emacs doesn't have a special insertion mode.
  1376.  
  1377.   You can type "C-x ESC ESC" (repeat-complex-command) to reinvoke commands
  1378.   that used the minibuffer to get arguments.  In repeat-complex-command you
  1379.   can type M-p and M-n to scan through all the different complex commands
  1380.   you've typed.
  1381.  
  1382.   To repeat a set of commands, use keyboard macros.  (See "Keyboard Macros"
  1383.   in the on-line manual.)
  1384.  
  1385.   If you're really desperate for the `.' command, vip-mode, which comes
  1386.   with Emacs 19, appears to support it.  (Vi-mode, another vi emulator that
  1387.   comes with Emacs 19, does not appear to support `.'.)
  1388.  
  1389. 50:  What are the valid X resource settings (i.e., stuff in .Xdefaults)?
  1390.  
  1391.   See Emacs man page, or "Resources X" in the on-line manual.
  1392.  
  1393.   You can also use a resource editor, such as editres (for X11R5 and
  1394.   onwards), to look at the resource names for the menu bar, assuming Emacs
  1395.   was compiled with the X toolkit.
  1396.  
  1397. 51:  How do I execute ("evaluate") a piece of Emacs Lisp code?
  1398.  
  1399.   There are a number of ways to execute ("evaluate," in Lisp lingo) an
  1400.   Emacs Lisp "form":
  1401.  
  1402.   * If you want it evaluated every time you run Emacs, put it in a file
  1403.     named ".emacs" in your home directory.  This is known as your ".emacs
  1404.     file," and contains all of your personal customizations.
  1405.  
  1406.   * You can type the form in the *scratch* buffer, and then type LFD (or
  1407.     C-j) after it.  The result of evaluating the form will be inserted in
  1408.     the buffer.
  1409.  
  1410.   * In Emacs-Lisp mode, typing M-C-x evaluates a top-level form before or
  1411.     around point.
  1412.  
  1413.   * Typing "C-x C-e" in any buffer evaluates the Lisp form immediately
  1414.     before point and prints its value in the echo area.
  1415.  
  1416.   * Typing M-ESC or M-x eval-expression allows you to type a Lisp form in
  1417.     the minibuffer which will be evaluated.
  1418.  
  1419.   * You can use M-x load-file to have Emacs evaluate all the Lisp forms in
  1420.     a file.  (To do this from Lisp use the function "load" instead.)
  1421.  
  1422.   These functions are also useful (see question 16 if you want to learn
  1423.   more about them):
  1424.  
  1425.     load-library, eval-region, eval-current-buffer, require, autoload
  1426.  
  1427. 52:  How do I change Emacs's idea of the tab character's length?
  1428.  
  1429.   Set the variable default-tab-width.  For example, to set tab stops every
  1430.   10 characters, insert the following in your .emacs file:
  1431.  
  1432.     (setq default-tab-width 10)
  1433.  
  1434.   Do not confuse variable tab-width with variable tab-stop-list.  The
  1435.   former is used for the display of literal tab characters.  The latter
  1436.   controls what characters are inserted when you press the TAB character in
  1437.   certain modes.
  1438.  
  1439. 53:  How do I insert `>' at the beginning of every line?
  1440.  
  1441.   To do this to an entire buffer, type "M-x replace-regexp RET ^ RET >
  1442.   RET".
  1443.  
  1444.   To do this to a region, use "string-rectangle" ("C-x r t").  Set the mark
  1445.   (`C-SPC') at the beginning of the first line you want to prefix, move the
  1446.   cursor to last line to be prefixed, and type "C-x r t > RET".  To do this
  1447.   for the whole buffer, type "C-x h C-x r t > RET".
  1448.  
  1449.   If you are trying to prefix a yanked mail message with '>', you might
  1450.   want to set the variable mail-yank-prefix.  Better yet, get the SuperCite
  1451.   package (see question 103), which provides flexible citation for yanked
  1452.   mail and news messages.
  1453.  
  1454. 54:  How do I insert "_^H" before each character in a region to get an
  1455.      underlined paragraph?
  1456.  
  1457.   M-x underline-region.
  1458.  
  1459. 55:  How do I repeat a command as many times as possible?
  1460.  
  1461.   Use "C-x (" and "C-x )" to make a keyboard macro that invokes the command
  1462.   and then type "M-0 C-x e".
  1463.  
  1464.   WARNING: any messages your command prints in the echo area will be
  1465.   suppressed.
  1466.  
  1467. 56:  How do I make Emacs behave like this: when I go up or down, the cursor
  1468.      should stay in the same column even if the line is too short?
  1469.  
  1470.   M-x picture-mode.
  1471.  
  1472. 57:  How do I tell Emacs to iconify itself?
  1473.  
  1474.   "C-z" iconifies Emacs when running under X Windows and suspends Emacs
  1475.   otherwise.  See "Misc X" in the on-line manual.
  1476.  
  1477. 58:  How do I use regexps (regular expressions) in Emacs?
  1478.  
  1479.   See "Regexps" in the on-line manual.
  1480.  
  1481.   WARNING: The "or" operator is `\|', not `|', and the grouping operators
  1482.   are `\(' and `\)'.  Also, the string syntax for a backslash is `\\'.  To
  1483.   specify a regular expression like xxx\(foo\|bar\) in a Lisp string, use
  1484.   
  1485.      "xxx\\(foo\\|bar\\)"
  1486.  
  1487.   Notice the doubled backslashes!
  1488.  
  1489.   WARNING: Unlike in Unix grep, sed, etc., a complement character set
  1490.   ([^...])  can match a newline character (LFD aka C-j aka \n), unless
  1491.   newline is mentioned as one of the characters not to match.
  1492.  
  1493.   WARNING: The character syntax regexps (e.g., "\sw") are not meaningful
  1494.   inside character set regexps (e.g., "[aeiou]").  (This is actually
  1495.   typical for regexp syntax.)
  1496.  
  1497. 59:  How do I perform a replace operation across more than one file?
  1498.  
  1499.   The "tags" feature of Emacs includes the command tags-query-replace which
  1500.   performs a query-replace across all the files mentioned in the TAGS file.
  1501.   See "Tags Search" in the on-line manual.
  1502.  
  1503.   In addition, Martin Boyer has written a package named global-replace
  1504.   which will perform a query-replace across all the files mentioned in the
  1505.   *compilation* buffer (usually done after a "grep"), which is available
  1506.   from:
  1507.  
  1508.     ftp://ireq-robot.hydro.qc.ca/pub/emacs/lisp/compile.el.z
  1509.     ftp://ireq-robot.hydro.qc.ca/pub/emacs/lisp/global-replace.el.z
  1510.     ftp://ireq-robot.hydro.qc.ca/pub/emacs/lisp/query.el.z
  1511.  
  1512.   NOTE: These files are compressed using GNU zip ("gzip"); you can get a
  1513.   copy from gzip from prep and its mirrors (see question 89).
  1514.  
  1515. 60:  Where is the documentation for "etags"?
  1516.  
  1517.   The "etags" man page should be in the same place as the "emacs" man page.
  1518.  
  1519.   Quick command-line switch descriptions are also available.  For example,
  1520.   "etags -H".
  1521.  
  1522. 61:  How do I disable backup files?
  1523.  
  1524.   You probably don't want to do this, since backups are useful.
  1525.  
  1526.   To avoid seeing backup files (and other "uninteresting" files) in Dired,
  1527.   load dired-x by adding the following to your .emacs file:
  1528.  
  1529.     (add-hook 'dired-load-hook
  1530.               (function (lambda ()
  1531.                           (load "dired-x"))))
  1532.  
  1533.   With dired-x loaded, `M-o' toggles omitting in each dired buffer.  You
  1534.   can make omitting the default for new dired buffers by putting the
  1535.   following in your .emacs:
  1536.  
  1537.     (setq initial-dired-omit-files-p t)
  1538.  
  1539.   If you're tired of seeing backup files whenever you do an "ls" at the
  1540.   Unix shell, try GNU ls with the "-B" option.  GNU ls is part of the GNU
  1541.   fileutils package, available at prep and its mirrors (see question 89).
  1542.  
  1543.   To disable or change how backups are made, see "Backup Names" in the
  1544.   on-line manual.
  1545.  
  1546. 62:  How do I disable auto-save-mode?
  1547.  
  1548.   You probably don't want to do this, since auto-saving is useful,
  1549.   especially when Emacs or your computer crashes while you are editing a
  1550.   document.
  1551.  
  1552.   Instead, you might want to change the variable auto-save-interval, which
  1553.   specifies how many keystrokes Emacs waits before auto-saving.  Increasing
  1554.   this value forces Emacs to wait longer between auto-saves, which might
  1555.   annoy you less.
  1556.  
  1557.   You might also want to look into Sebastian Kremer's auto-save package,
  1558.   available from the Lisp Code Archive (see question 87).  This package
  1559.   also allows you to place all auto-save files in one directory, such as
  1560.   /tmp.
  1561.  
  1562.   To disable or change how auto-save-mode works, see "Auto Save" in the
  1563.   on-line manual.
  1564.  
  1565. 63:  How can I create or modify new pull-down menu options?
  1566.  
  1567.   Pull-down menus are a new feature in Emacs 19, and are available only
  1568.   when Emacs runs directly under a window system.  (Thus Emacs run under X
  1569.   Windows can display pull-down menus, but Emacs run inside an xterm
  1570.   cannot.)
  1571.  
  1572.   Each menu title (e.g., Buffers, File, Edit) represents a local or global
  1573.   keymap.  Selecting a menu title with the mouse displays that keymap's
  1574.   non-nil contents in the form of a menu.
  1575.  
  1576.   So to add a menu option to an existing menu, all you have to do is add a
  1577.   new definition to the appropriate keymap.  Adding a "forward word"
  1578.   command to the "Edit" menu thus requires the following Lisp code:
  1579.  
  1580.     (define-key global-map            
  1581.       [menu-bar edit forward]         
  1582.       '("Forward word" . forward-word))
  1583.  
  1584.   The first line adds the entry to the global keymap, which includes global
  1585.   menu bar entries.  Replacing the reference to "global-map" with a local
  1586.   keymap would add this menu option only within a particular mode.
  1587.  
  1588.   The second line describes the path from the menu-bar to the new entry.
  1589.   Placing this menu entry underneath the "File" menu would mean changing
  1590.   the word "edit" in the second line to "file."
  1591.  
  1592.   The third line is a cons cell whose first element is the title that will
  1593.   be displayed, and whose second element is the function that will be
  1594.   called when that menu option is invoked.
  1595.  
  1596.   To add a new menu, rather than a new option to an existing menu, we must
  1597.   define an entirely new keymap:
  1598.  
  1599.     (define-key global-map [menu-bar words]
  1600.       (cons "Words" (make-sparse-keymap "Words")))
  1601.  
  1602.   The above code creates a new sparse keymap, gives it the name "Words",
  1603.   and attaches it to the global menu bar.  Adding the "forward word"
  1604.   command to this new menu would thus require the following code:
  1605.  
  1606.     (define-key global-map
  1607.       [menu-bar words forward]
  1608.       '("Forward word" . forward-word))
  1609.  
  1610.   Note that because of the way keymaps work, menu options are displayed
  1611.   with the more recently defined items at the top.  Thus if you were to
  1612.   define menu options "foo", "bar", and "baz" (in that order), menu option
  1613.   "baz" would appear at the top, and "foo" would be at the bottom.
  1614.  
  1615.   One way to avoid this problem is to use the function define-key-after,
  1616.   which works the same as define-key, but lets you modify where items
  1617.   appear.  The following Lisp code would insert the "forward word" function
  1618.   in the "edit" menu immediately following the "undo" option:
  1619.  
  1620.     (define-key-after
  1621.       (lookup-key global-map [menu-bar edit])
  1622.       [forward]
  1623.       '("Forward word" . forward-word)
  1624.       'undo)
  1625.  
  1626.   Note how the second and third arguments to define-key-after are different
  1627.   from those of define-key, and that we have added a new (final) argument,
  1628.   the function after which our new key should be defined.
  1629.  
  1630.   To move a menu option from one position to another, simply evaluate
  1631.   define-key-after with the appropriate final argument.
  1632.  
  1633.   More detailed information -- and more examples of how to create and
  1634.   modify menu options -- are in the Emacs Lisp Reference Manual, under
  1635.   "Keymaps."  (See question 16 for information on this manual.)
  1636.  
  1637. 64:  How do I delete menus and menu options?
  1638.  
  1639.   The simplest way to remove a menu is to set its keymap to nil.  For
  1640.   example, to delete the "Words" menu (from question 63), use:
  1641.  
  1642.     (define-key global-map [menu-bar words] nil)
  1643.  
  1644.   Similarly, removing a menu option requires redefining a keymap entry to
  1645.   nil.  For example, to delete the "Forward word" menu option from the
  1646.   "Edit" menu (we added it in question 63), use:
  1647.  
  1648.     (define-key global-map [menu-bar edit forward] nil)
  1649.  
  1650. 65:  What are hilit19 and font-lock modes, what is the difference between
  1651.      them, and how do I customize them?
  1652.  
  1653.   Hilit19 and font-lock are two minor modes that syntactically highlight
  1654.   Emacs buffers using colors and fonts of your choosing.  This is
  1655.   especially useful when editing code, since strings can be in one face,
  1656.   comments a second color, and function definitions a third.  Both packages
  1657.   come with Emacs 19.
  1658.  
  1659.   Hilit19 is slower than font-lock mode, but is easier to customize and has
  1660.   regexps for more major modes.  To invoke hilit19 automatically whenever
  1661.   you start Emacs, include the following Lisp forms (stolen from the
  1662.   documentation at the top of hilit19.el, which should be in your lisp
  1663.   directory) in your .emacs file:
  1664.  
  1665.     (cond (window-system
  1666.            (setq hilit-mode-enable-list  '(not text-mode)
  1667.                  hilit-background-mode   'light
  1668.                  hilit-inhibit-hooks     nil
  1669.                  hilit-inhibit-rebinding nil)
  1670.            (require 'hilit19)))
  1671.  
  1672.   Note that hilit-background-mode should be set to 'dark (and not 'light)
  1673.   if your Emacs window has a dark background.
  1674.  
  1675.   Changing the default hilit19 face specifications requires the use of
  1676.   hilit-translate.  See the comments at the top of hilit19.el for some
  1677.   examples of how to use hilit-translate, as well as for some basic
  1678.   instructions.
  1679.  
  1680.   Font-lock is faster than hilit19, but comes with fewer predefined regexps
  1681.   and supports fewer major modes.  To enable font-lock for a particular
  1682.   mode, you will need to use the hook for that mode.  For example, to turn
  1683.   on font-lock mode every time you load an Emacs Lisp file, add the
  1684.   following to your .emacs file:
  1685.  
  1686.     (add-hook 'emacs-lisp-mode-hook '(lambda () (font-lock-mode 1)))
  1687.  
  1688.   Customization of font-lock mode is done by setting the variables
  1689.   font-lock-comment-face, font-lock-string-face, font-lock-doc-string-face,
  1690.   and font-lock-function-name-face.  You may define new reserved words by
  1691.   modifying the variable font-lock-keywords.
  1692.  
  1693.   If you want to use hilit19 for some modes and font-lock for others, you
  1694.   can use the variable hilit-mode-enable-list.  See the documentation for
  1695.   that variable (using M-x describe-variable) for instructions on how to
  1696.   set it.
  1697.  
  1698.   You might also want to look at Simon Marshall's face-lock package, which
  1699.   handles fontification and provides an easier interface to font-lock.  You
  1700.   can get face-lock from the Emacs Lisp Archive; see question 87.
  1701.  
  1702. 66:  How can I force Emacs to scroll only one line when I move past the
  1703.      bottom of the screen?
  1704.  
  1705.   Place the following Lisp form in your .emacs file:
  1706.  
  1707.     (setq scroll-step 1)
  1708.  
  1709.   Also see "Scrolling" in the on-line manual.
  1710.  
  1711. 67:  How can I replace highlighted text with what I type?
  1712.  
  1713.   Use delete-selection mode, which you can start automatically by placing
  1714.   the following Lisp form in your .emacs file:
  1715.  
  1716.     (delete-selection-mode t)
  1717.  
  1718.   According to the documentation string for delete-selection mode (which
  1719.   you can read using M-x describe-function RET delete-selection-mode RET):
  1720.  
  1721.     When ON, typed text replaces the selection if the selection is active.
  1722.     When OFF, typed text is just inserted at point.
  1723.  
  1724.   This mode also allows you to delete (not kill) the highlighted region by
  1725.   pressing DEL.
  1726.  
  1727. 68:  How can I edit MS-DOS files using Emacs?
  1728.  
  1729.   Get crypt++ from the Emacs Lisp Archive (see question 87).  Among other
  1730.   things, crypt++ transparently modifies MS-DOS files as they are loaded
  1731.   and saved, allowing you to ignore the different conventions that Unix and
  1732.   MS-DOS have for delineating the end of a line.
  1733.  
  1734. Archive-name: GNU-Emacs-FAQ/part3
  1735.  
  1736. ------------------------------------------------------------
  1737.  
  1738. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
  1739. $" to get an overview of just the questions.  Then, when you want to look
  1740. at the text of the answers, just type "C-x $".
  1741.  
  1742. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
  1743. C-r if that doesn't work.  Type RET to end the search.
  1744.  
  1745. If you have w3-mode installed (see question 110), you can visit ftp and
  1746. HTTP uniform resource locators (URLs) by placing the cursor on the URL and
  1747. typing M-x w3-follow-url-at-point.
  1748.  
  1749. Full instructions for getting the latest FAQ are in question 22.
  1750.  
  1751. ------------------------------------------------------------
  1752.  
  1753.  
  1754.  
  1755. Bugs/Problems
  1756.  
  1757. 69:  Does Emacs have problems with files larger than 8 megabytes?
  1758.  
  1759.   On 64-bit machines, Emacs has no problem editing very large files.  RMS
  1760.   says that modifications to make larger files editable by default are
  1761.   underway for a future version of Emacs.
  1762.  
  1763.   Until then, most installed versions of Emacs will use 24-bit signed
  1764.   integers (and 24-bit pointers) internally.  This limits the file size
  1765.   that Emacs can handle to 8,388,607 bytes (2^23 - 1).
  1766.  
  1767.   Leonard N. Zubkoff <lnz@lucid.com> suggests putting the following two
  1768.   lines in src/config.h before compiling Emacs to allow for 26-bit integers
  1769.   and pointers (and thus file sizes of up to 33,554,431 bytes):
  1770.  
  1771.     #define VALBITS 26
  1772.     #define GCTYPEBITS 5
  1773.  
  1774.   WARNING: This method may result in "ILLEGAL DATATYPE" and other random
  1775.   errors on some machines.
  1776.  
  1777.   David Gillespie <daveg@csvax.cs.caltech.edu> gives an explanation of why
  1778.   Emacs uses 24 bit integers and pointers:
  1779.  
  1780.     Emacs is largely written in a dialect of Lisp; Lisp is a freely-typed
  1781.     language in the sense that you can put any value of any type into any
  1782.     variable, or return it from a function, and so on.  So each value must
  1783.     carry a "tag" along with it identifying what kind of thing it is, e.g.,
  1784.     integer, pointer to a list, pointer to an editing buffer, and so on.
  1785.     Emacs uses standard 32-bit integers for data objects, taking the top 8
  1786.     bits for the tag and the bottom 24 bits for the value.  So integers
  1787.     (and pointers) are somewhat restricted compared to true C integers and
  1788.     pointers.
  1789.  
  1790.     Emacs uses 8-bit tags because that's a little faster on byte-oriented
  1791.     machines, but there are only really enough tags to require 6 bits.
  1792.  
  1793. 70:  How do I get rid of the ^M junk in my shell buffer?
  1794.  
  1795.   Try typing "M-x shell-strip-ctrl-m RET" while in shell-mode to make them
  1796.   go away.  If that doesn't work, you have several options:
  1797.  
  1798.   For tcsh, put this in your .cshrc (or .tcshrc) file:
  1799.  
  1800.     if ($?EMACS) then
  1801.         if ("$EMACS" == t) then
  1802.             if ($?tcsh) unset edit
  1803.             stty nl
  1804.         endif
  1805.     endif
  1806.  
  1807.   Or put this in your .emacs_tcsh file:
  1808.  
  1809.     unset edit
  1810.     stty nl
  1811.  
  1812.   Alternatively, use csh in your shell buffers instead of tcsh.  One way
  1813.   is:
  1814.  
  1815.     (setq explicit-shell-file-name "/bin/csh")
  1816.  
  1817.   and another is to do this in your .cshrc (or .tcshrc) file:
  1818.  
  1819.     setenv ESHELL /bin/csh
  1820.  
  1821.   (You must start Emacs over again with the environment variable properly
  1822.   set for this to take effect.)
  1823.  
  1824.   You can also set the ESHELL environment variable in Emacs Lisp with
  1825.   the following Lisp form,
  1826.  
  1827.     (setenv "ESHELL" "/bin/csh")
  1828.  
  1829. 71:  Why do I get "Process shell exited abnormally with code 1"?
  1830.  
  1831.   The most likely reason for this message is that the "env" program is not
  1832.   properly installed.  Compile this program for your architecture, and
  1833.   install it with a+x permission in the architecture-dependent Emacs
  1834.   program directory.  (You can find what this directory is at your site by
  1835.   inspecting the value of the variable exec-directory by typing "C-h v
  1836.   exec-directory RET".)
  1837.  
  1838.   You should also check for other programs named "env" in your path (e.g.,
  1839.   SunOS has a program named /usr/bin/env).  We don't understand why this
  1840.   can cause a failure and don't know a general solution for working around
  1841.   the problem in this case.
  1842.  
  1843.   The "make clean" command will remove "env" and other vital programs, so
  1844.   be careful when using it.
  1845.  
  1846.   It has been reported that this sometimes happened when Emacs was started
  1847.   as an X client from an xterm window (i.e., had a controlling tty) but the
  1848.   xterm was later terminated.
  1849.  
  1850.   See also PROBLEMS (in the top-level directory when you unpack the Emacs
  1851.   source) for other possible causes of this message.
  1852.  
  1853. 72:  Where is the termcap/terminfo entry for terminal type "emacs"?
  1854.  
  1855.   The termcap entry for terminal type "emacs" is ordinarily put in the
  1856.   TERMCAP environment variable of subshells.  It may help in certain
  1857.   situations (e.g., using rlogin from shell buffer) to add an entry for
  1858.   "emacs" to the system-wide termcap file.  Here is a correct termcap entry
  1859.   for "emacs":
  1860.  
  1861.     emacs:tc=unknown:
  1862.  
  1863.   To make a terminfo entry for "emacs", use "tic" or "captoinfo."  You need
  1864.   to generate /usr/lib/terminfo/e/emacs.  It may work to simply copy
  1865.   /usr/lib/terminfo/d/dumb to /usr/lib/terminfo/e/emacs.
  1866.  
  1867.   Having a termcap/terminfo entry will not enable the use of full screen
  1868.   programs in shell buffers.  Use M-x terminal-emulator for that instead.
  1869.  
  1870.   A workaround to the problem of missing termcap/terminfo entries is to
  1871.   change terminal type "emacs" to type "dumb" or "unknown" in your shell
  1872.   start up file.  "csh" users could put this in their .cshrc files:
  1873.  
  1874.     if ("$term" == emacs) set term=dumb
  1875.  
  1876. 73:  Why does Emacs spontaneously start displaying "I-search:" and beeping?
  1877.  
  1878.   Your terminal (or something between your terminal and the computer) is
  1879.   sending C-s and C-q for flow control, and Emacs is receiving these
  1880.   characters and interpreting them as commands.  (The C-s character
  1881.   normally invokes the isearch-forward command.)  For possible solutions,
  1882.   see question 119.
  1883.  
  1884. 74:  Why can't Emacs talk to certain hosts (or certain hostnames)?
  1885.  
  1886.   The problem may be that Emacs is linked with a wimpier version of
  1887.   gethostbyname than the rest of the programs on the machine.  This is
  1888.   often manifested as a message on startup of "X server not responding.
  1889.   Check your DISPLAY environment variable." or a message of "Unknown host"
  1890.   from open-network-stream.
  1891.  
  1892.   On a Sun, this may be because Emacs had to be linked with the static C
  1893.   library.  The version of gethostbyname in the static C library may only
  1894.   look in /etc/hosts and the NIS (YP) maps, while the version in the
  1895.   dynamic C library may be smart enough to check DNS in addition to or
  1896.   instead of NIS.  On a Motorola Delta running System V R3.6, the version
  1897.   of gethostbyname in the standard library works, but the one that works
  1898.   with NIS doesn't (the one you get with -linet).  Other operating systems
  1899.   have similar problems.
  1900.  
  1901.   Try these options:
  1902.  
  1903.   * Explicitly add the host you want to communicate with to /etc/hosts.
  1904.  
  1905.   * Relink Emacs with this line in src/config.h:
  1906.  
  1907.       #define LIBS_SYSTEM -lresolv
  1908.  
  1909.   * Replace gethostbyname and friends in libc.a with more useful versions
  1910.     such as the ones in libresolv.a.  Then relink Emacs.
  1911.  
  1912.   * If you are actually running NIS, make sure that "ypbind" is properly
  1913.     told to do DNS lookups with the correct command line switch.
  1914.  
  1915.   * Use tcp.el and tcp.c from Gnus.  This has the additional advantage that
  1916.     you can use numeric IP addresses instead of names.  open-network-stream
  1917.     currently can't handle numeric addresses.  Brian Thomson
  1918.     <thomson@hub.toronto.edu> has a enhancement to open-network-stream to
  1919.     allow it to handle numeric addresses.
  1920.  
  1921. 75:  Why does Emacs say "Error in init file"?
  1922.  
  1923.   An error occurred while loading either your .emacs file or the
  1924.   system-wide lisp/default.el file.  For information on how to debug your
  1925.   .emacs file, see question 27.
  1926.  
  1927.   It may be the case that you need to load some package first, or use a
  1928.   hook that will be evaluated after the package is loaded.  A common case
  1929.   of this is explained in question 115.
  1930.  
  1931. 76:  Why does Emacs ignore my X resources (my .Xdefaults file)?
  1932.  
  1933.   As of version 19, Emacs searches for X resources in the files specified
  1934.   by the XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
  1935.   variables, emulating the functionality provided by programs written using
  1936.   Xt.
  1937.  
  1938.   XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
  1939.   separated by colons; XAPPLRESDIR should be a list of directory names
  1940.   separated by colons.
  1941.  
  1942.   Emacs searches for X resources
  1943.  
  1944.     + specified on the command line, with the "-xrm RESOURCESTRING"
  1945.       option,
  1946.     + then in the value of the XENVIRONMENT environment variable,
  1947.       - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it
  1948.         exists
  1949.         (where HOSTNAME is the hostname of the machine Emacs is running on),
  1950.     + then in the screen-specific and server-wide resource properties
  1951.       provided by the server,
  1952.       - or if those properties are unset, in the file named ~/.Xdefaults
  1953.         if it exists,
  1954.     + then in the files listed in XUSERFILESEARCHPATH,
  1955.       - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
  1956.         (where LANG is the value of the LANG environment variable), if
  1957.         the LANG environment variable is set,
  1958.       - or in files named Emacs in the directories listed in XAPPLRESDIR
  1959.       - or in ~/LANG/Emacs (if the LANG environment variable is set),
  1960.       - or in ~/Emacs,
  1961.     + then in the files listed in XFILESEARCHPATH.
  1962.  
  1963. 77:  Why does Emacs take 20 seconds to visit a file?
  1964.  
  1965.   The usual cause is that the master lock file, "!!!SuperLock!!!" has been
  1966.   left in the lock directory somehow.  Delete it.
  1967.  
  1968.   Mark Meuer <meuer@geom.umn.edu> says that NeXT NFS has a bug where an
  1969.   exclusive create succeeds but returns an error status.  This can cause
  1970.   the same problem.  Since Emacs's file locking doesn't work over NFS
  1971.   anyway, the best solution is to recompile Emacs with CLASH_DETECTION
  1972.   undefined.
  1973.  
  1974. 78:  How do I edit a file with a `$' in its name?
  1975.  
  1976.   When entering a filename in the minibuffer, Emacs will attempt to expand
  1977.   a `$' followed by a word as an environment variable.  To suppress this
  1978.   behavior, type "$$" instead.
  1979.  
  1980. 79:  Why does shell mode lose track of the shell's current directory?
  1981.  
  1982.   Emacs has no way of knowing when the shell actually changes its
  1983.   directory.  This is an intrinsic limitation of Unix.  So it tries to
  1984.   guess by recognizing "cd" commands.  If you type "cd" followed by a
  1985.   directory name with a variable reference ("cd $HOME/bin") or with a shell
  1986.   metacharacter ("cd ../lib*"), Emacs will fail to correctly guess the
  1987.   shell's new current directory.  A huge variety of fixes and enhancements
  1988.   to shell mode for this problem have been written to handle this problem.
  1989.   Check the Lisp Code Directory (see question 86).
  1990.  
  1991.   You can tell Emacs the shell's current directory with the command "M-x
  1992.   dirs".
  1993.  
  1994. 80:  Are there any security risks in Emacs?
  1995.  
  1996.   * the "movemail" incident (No, this is not a risk.)
  1997.  
  1998.     In his book "The Cuckoo's Egg," Cliff Stoll describes this in chapter
  1999.     4.  The site at LBL had installed the "etc/movemail" program setuid
  2000.     root.  (As of version 19, movemail is in your architecture-specific
  2001.     directory; type "C-h v exec-directory RET" to see what it is.)  Since
  2002.     "movemail" had not been designed for this situation, a security hole
  2003.     was created and users could get root privileges.
  2004.  
  2005.     "movemail" has since been changed so that even if it is installed
  2006.     setuid root this security hole will not be a result.
  2007.  
  2008.     We have heard unverified reports that the 1988 Internet worm took
  2009.     advantage of this configuration problem.
  2010.  
  2011.   * the file-local-variable feature (Yes, a risk, but easy to change.)
  2012.  
  2013.     There is an Emacs feature that allows the setting of local values for
  2014.     variables when editing a file by including specially formatted text
  2015.     near the end of the file.  This feature also includes the ability to
  2016.     have arbitrary Emacs Lisp code evaluated when the file is visited.
  2017.     Obviously, there is a potential for Trojan horses to exploit this
  2018.     feature.
  2019.  
  2020.     Emacs 18 allowed this feature by default; users could disable it by
  2021.     setting the variable inhibit-local-variables to a non-nil value.
  2022.  
  2023.     As of Emacs 19, the opposite is true: Emacs disallows file variable by
  2024.     default, and users must explicitly enable them by setting the variable
  2025.     enable-local-variables to a non-nil value.
  2026.  
  2027.     For more information, see "File Variables" in the on-line manual.
  2028.  
  2029.   * synthetic X events (Yes, a risk; use MIT-MAGIC-COOKIE-1 or better.)
  2030.  
  2031.     Emacs accepts synthetic X events generated by the SendEvent request as
  2032.     though they were regular events.  As a result, if you are using the
  2033.     trivial host-based authentication, other users who can open X
  2034.     connections to your X workstation can make your Emacs process do
  2035.     anything, including run other processes with your privileges.
  2036.  
  2037.     The only fix for this is to prevent other users from being able to open
  2038.     X connections.  The standard way to prevent this is to use a real
  2039.     authentication mechanism, such as MIT-MAGIC-COOKIE-1.  If using the
  2040.     "xauth" program has any effect, then you are probably using
  2041.     MIT-MAGIC-COOKIE-1.  Your site may be using a superior authentication
  2042.     method; ask your system administrator.
  2043.  
  2044.     If real authentication is not a possibility, you may be satisfied by
  2045.     just allowing hosts access for brief intervals while you start your X
  2046.     programs, then removing the access.  This reduces the risk somewhat by
  2047.     narrowing the time window when hostile users would have access, but
  2048.     DOES NOT ELIMINATE THE RISK.
  2049.  
  2050.     On most computers running Unix and X Windows, you enable and disable
  2051.     access using the "xhost" command.  To allow all hosts access to your X
  2052.     server, use
  2053.  
  2054.       xhost +
  2055.  
  2056.     at the shell prompt, which (on an HP machine, at least) produces the
  2057.     following message:
  2058.  
  2059.       access control disabled, clients can connect from any host
  2060.  
  2061.     To deny all hosts access to your X server (except those explicitly
  2062.     allowed by name), use
  2063.  
  2064.       xhost -
  2065.  
  2066.     On the test HP computer, this command generated the following message:
  2067.  
  2068.       access control enabled, only authorized clients can connect
  2069.  
  2070.  
  2071. Difficulties Building/Installing/Porting Emacs
  2072.  
  2073. 81:  How do I install Emacs?
  2074.  
  2075.   This answer is meant for users of Unix and Unix-like systems.  Users of
  2076.   other operating systems should see the series of questions beginning with
  2077.   question 91, which describe where to get non-Unix source and binaries.
  2078.   These packages should come with installation instructions.
  2079.  
  2080.   For Unix and Unix-like systems, the easiest way is often to compile it
  2081.   from scratch.  You will need:
  2082.  
  2083.   * Emacs sources.  See question 89 for a list of ftp sites that make them
  2084.     available.  On prep.ai.mit.edu, the main GNU distribution site, sources
  2085.     are available at
  2086.  
  2087.       ftp://prep.ai.mit.edu/pub/gnu/emacs-19.28.tar.gz
  2088.  
  2089.     The above will obviously change as new versions of Emacs come out.  For
  2090.     instance, when Emacs 19.29 is released, it will most probably be
  2091.     available at
  2092.  
  2093.       ftp://prep.ai.mit.edu/pub/gnu/emacs-19.29.tar.gz
  2094.  
  2095.     Again, you should use one of the mirror sites in question 89 (and
  2096.     adjust the URL accordingly) so as to reduce load on prep.
  2097.  
  2098.   * Gzip, the GNU compression utility.  You can get gzip via anonymous ftp
  2099.     at prep and its mirror sites; it should compile and install without
  2100.     much trouble on most systems.  Once you have retrieved the Emacs
  2101.     sources, you will probably be able to uncompress them with the command
  2102.  
  2103.       gunzip --verbose emacs-19.28.tar.gz
  2104.  
  2105.     changing the Emacs version (19.28), as necessary.  Once gunzip has
  2106.     finished doing its job, a file by the name of "emacs-19.28.tar" should
  2107.     be in your build directory.
  2108.  
  2109.   * Tar, the "tape archiving" program, which moves multiple files into and
  2110.     out of archive files, or "tarfiles."  All of the files comprising the
  2111.     Emacs source come in a single tarfile, and must be extracted using tar
  2112.     before you can build Emacs.  Typically, the extraction command would
  2113.     look like
  2114.  
  2115.       tar -xvvf emacs-19.28.tar
  2116.  
  2117.     The `x' indicates that we want to extract files from this tarfile, the
  2118.     two `v's force verbose output, and the `f' tells tar to use a disk
  2119.     file, rather than one on tape.
  2120.  
  2121.     If you're using GNU tar (available at prep and its mirrors), you can
  2122.     combine this step and the previous one by using the command
  2123.  
  2124.       tar -zxvvf emacs-19.28.tar.gz
  2125.  
  2126.     The additional `z' at the beginning of the options list tells GNU tar
  2127.     to uncompress the file with gunzip before extracting the tarfile's
  2128.     components.
  2129.  
  2130.   At this point, the Emacs sources (all 25+ megabytes of them) should be
  2131.   sitting in a directory called "emacs-19.28".  On most common Unix and
  2132.   Unix-like systems, you should be able to compile Emacs (with X Windows
  2133.   support) with the following commands:
  2134.  
  2135.     cd emacs-19.28      [ change directory to emacs-19.28 ]
  2136.     ./configure         [ configure Emacs for your particular system ]
  2137.     make                [ use Makefile to build components, then Emacs ]
  2138.  
  2139.   If the "make" completes successfully, the odds are fairly good that the
  2140.   build has gone well.  (See question 83 if you weren't successful.)
  2141.  
  2142.   To install Emacs in its default directories of /usr/local/bin (binaries),
  2143.   /usr/local/lib/emacs/19.xx (Lisp code and support files), and
  2144.   /usr/local/info (Info documentation), become the super-user and type
  2145.  
  2146.     make install
  2147.  
  2148.   Note that "make install" will overwrite /usr/local/bin/emacs and any
  2149.   Emacs Info files that might be in /usr/local/info.
  2150.  
  2151.   Much more verbose instructions (with many more hints and suggestions)
  2152.   come with the Emacs sources, in the file "INSTALL".
  2153.  
  2154. 82:  How do I update Emacs to the latest version?
  2155.  
  2156.   Follow the instructions in question 81.
  2157.  
  2158.   Emacs 19 places nearly everything in version-specific directories (e.g.,
  2159.   /usr/local/lib/emacs/19.28), so the only files that can be overwritten
  2160.   when installing a new release are /usr/local/bin/emacs and the Emacs Info
  2161.   documentation in /usr/local/info.  Back up these files before you install
  2162.   a new release, and you shouldn't have too much trouble.
  2163.  
  2164. 83:  What should I do if I have trouble building Emacs?
  2165.  
  2166.   First look in the file PROBLEMS (in the top-level directory when you
  2167.   unpack the Emacs source) to see if there is already a solution for your
  2168.   problem.  Next, look for other questions in this FAQ that have to do with
  2169.   Emacs installation and compilation problems.
  2170.  
  2171.   If you'd like to have someone look at your problem and help solve it, see
  2172.   question 21.
  2173.  
  2174.   If you don't find a solution, then report your problem via e-mail to
  2175.   bug-gnu-emacs@prep.ai.mit.edu.  Please do not post it to gnu.emacs.help
  2176.   or e-mail it to help-gnu-emacs@prep.ai.mit.edu.  For further guidelines,
  2177.   see question 10.
  2178.  
  2179. 84:  Why does linking Emacs with -lX11 fail?
  2180.  
  2181.   Emacs needs to be linked with the static version of the X11 library,
  2182.   libX11.a.  This may be missing.
  2183.  
  2184.   Under OpenWindows, you may need to use "add_services" to add the
  2185.   "OpenWindows Programmers" optional software category from the CD-ROM.
  2186.  
  2187.   Under HP-UX 8.0, you may need to run "update" again to load the X11-PRG
  2188.   "fileset".  This may be missing even if you specified "all filesets" the
  2189.   first time.  If libcurses.a is missing, you may need to load the
  2190.   "Berkeley Development Option."
  2191.  
  2192.   David Zuhn <zoo@armadillo.com> says that MIT X builds shared libraries by
  2193.   default, and only shared libraries, on those platforms that support them.
  2194.   These shared libraries can't be used when undumping temacs (the last
  2195.   stage of the Emacs build process).  To get regular libraries in addition
  2196.   to shared libraries, add this to site.cf:
  2197.  
  2198.       #define ForceNormalLib YES
  2199.  
  2200.   Other systems may have similar problems.  You can always define
  2201.   CANNOT_DUMP and link with the shared libraries instead.
  2202.  
  2203.   To get the Xmenu stuff to work, you need to find a copy of MIT's
  2204.   liboldX.a.
  2205.  
  2206.  
  2207. Finding/Getting Emacs and Related Packages
  2208.  
  2209. 85:  Where can I get Emacs on the net (or by snail mail)?
  2210.  
  2211.   Look in the files etc/DISTRIB and etc/FTP for information on nearby
  2212.   archive sites and etc/ORDERS for mail orders.  If you don't already have
  2213.   Emacs, see question 20 for how to get these files.
  2214.  
  2215.   See question 81 for information on how to obtain and build the latest
  2216.   version of Emacs, and question 89 for a list of archive sites that make
  2217.   GNU software available.
  2218.  
  2219. 86:  How do I find a Emacs Lisp package that does XXX?
  2220.  
  2221.   First of all, you should check to make sure that the package isn't
  2222.   already available.  For example, typing "M-x apropos RET wordstar RET"
  2223.   lists all functions and variables containing the string "wordstar".
  2224.  
  2225.   It is also possible that the package is on your system, but has not been
  2226.   loaded.  To see which packages are available for loading, look through
  2227.   your computer's lisp directory (see question 4).  The Lisp source to most
  2228.   most packages contains a short description of how they should be loaded,
  2229.   invoked, and configured -- so before you use or modify a Lisp package,
  2230.   see if the author has provided any hints in the source code.
  2231.  
  2232.   If a package does not come with Emacs, check the Lisp Code Directory,
  2233.   maintained by Dave Brennan <brennan@hal.com>.  The directory is contained
  2234.   in the file LCD-datafile.Z, available from the Emacs Lisp Archive (see
  2235.   question 87), and is accessed using the "lispdir" package, available from
  2236.   the same site.  Note that lispdir.el requires crypt++, which you can grab
  2237.   from the Emacs Lisp Archive's "misc" subdirectory when you get
  2238.   lispdir.el.
  2239.  
  2240.   Once you have installed lispdir.el and LCD-datafile, you can use "M-x
  2241.   lisp-dir-apropos" to search the listing.  For example, "M-x
  2242.   lisp-dir-apropos RET ange-ftp RET" produces this output:
  2243.  
  2244.               GNU Emacs Lisp Code Directory Apropos -- "ange-ftp"
  2245.      "~/" refers to archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/
  2246.  
  2247.           ange-ftp (4.18)       15-Jul-1992
  2248.                Andy Norman, <ange@hplb.hpl.hp.com>
  2249.                ~/packages/ange-ftp.tar.Z
  2250.                transparent FTP Support for GNU Emacs
  2251.           auto-save (1.19)      01-May-1992
  2252.                Sebastian Kremer, <sk@thp.uni-koeln.de>
  2253.                ~/misc/auto-save.el.Z
  2254.                Safer autosaving with support for ange-ftp and /tmp
  2255.           ftp-quik (1.0)        28-Jul-1993
  2256.                Terrence Brannon, <tb06@pl122f.eecs.lehigh.edu>
  2257.                ~/modes/ftp-quik.el.Z
  2258.                Quik access to dired'ing of ange-ftp and normal paths
  2259.  
  2260.   You actually don't need this the directory file if your computer is on
  2261.   the Internet, since the latest version is retrieved automatically the
  2262.   first time you type "M-x lisp-dir-apropos" in a particular Emacs session.
  2263.   If you would prefer to use a local copy of LCD-datafile, be sure to set
  2264.   the variable lisp-code-directory at the top of the lispdir.el source
  2265.   code.
  2266.  
  2267.   A version of the LCD is also available on the World-Wide Web at
  2268.  
  2269.     http://www.cs.indiana.edu/LCD/cover.html
  2270.  
  2271. 87:  Where can I get Emacs Lisp packages that don't come with Emacs?
  2272.  
  2273.   First, check the Lisp Code Directory to find the name of the package you
  2274.   are looking for (see question 86).  Next, check local archives and the
  2275.   Emacs Lisp Archive to find a copy of the relevant files.  If you still
  2276.   haven't found it, you can send e-mail to the author asking for a copy.
  2277.   If you find Emacs Lisp code that doesn't appear in the LCD, please submit
  2278.   a copy to the LCD (see question 88).
  2279.  
  2280.    You can access the Emacs Lisp Archive at the following sites:
  2281.  
  2282.     ftp://archive.cis.ohio-state.edu/pub/gnu/emacs/elisp-archive/
  2283.     ftp://calypso-2.oit.unc.edu/pub/gnu/elisp-archive/
  2284.     ftp://faui43.informatik.uni-erlangen.de/pub/gnu/elisp-archive/
  2285.     ftp://ftp.cs.umn.edu/pub/elisp-archive/
  2286.     ftp://ftp.diku.dk/pub/elisp-archive/
  2287.     ftp://ftp.uni-mainz.de/pub/gnu/elisp-archive/
  2288.     ftp://ftp.uu.net/packages/gnu/emacs-lisp/
  2289.     ftp://gatekeeper.dec.com/pub/GNU/elisp-archive/
  2290.     ftp://nic.funet.fi/pub/gnu/emacs/elisp-archive/
  2291.     ftp://nic.switch.ch/mirror/elisp-archive/
  2292.     ftp://quepasa.cs.tu-berlin.de/pub/gnu/elisp/
  2293.     ftp://src.doc.ic.ac.uk/gnu/EmacsBits/elisp-archive/
  2294.  
  2295.   Retrieve and read the file README first.
  2296.  
  2297.   NOTE: * The archive maintainers do not have time to answer individual
  2298.           requests for packages or the list of packages in the archive.  If
  2299.           you cannot use FTP or UUCP to access the archive yourself, try to
  2300.           find a friend who can, but please don't ask the maintainers.
  2301.  
  2302.         * Any files with names ending in ".Z", ".z", or ".gz" are
  2303.           compressed, so you should use "binary" mode in FTP to retrieve
  2304.           them.  You should also use binary mode whenever you retrieve any
  2305.           files with names ending in ".elc".
  2306.  
  2307. 88:  How do I submit code to the Emacs Lisp Archive?
  2308.  
  2309.   Guidelines and procedures for submission to the archive can be found in
  2310.   the file GUIDELINES in the archive directory (see question 87).  It
  2311.   covers documentation, copyrights, packaging, submission, and the Lisp
  2312.   Code Directory Record.  Anonymous FTP uploads are not permitted.
  2313.   Instead, all submissions are mailed to elisp-archive@cis.ohio-state.edu.
  2314.   The lispdir.el package has a function named submit-lcd-entry which will
  2315.   help you with this.
  2316.  
  2317. 89:  Where can I get other up-to-date GNU stuff?
  2318.  
  2319.   The most up-to-date official GNU software is normally kept on
  2320.   prep.ai.mit.edu and is available at
  2321.  
  2322.     ftp://prep.ai.mit.edu/pub/gnu
  2323.  
  2324.   Read the files etc/DISTRIB and etc/FTP for more information.
  2325.  
  2326.   The following sites are all mirror images of the GNU distribution area:
  2327.  
  2328.     ASIA: ftp://cair.kaist.ac.kr/pub/gnu,
  2329.           ftp://ftp.nectec.or.th/pub/mirrors/gnu,
  2330.           ftp://utsun.s.u-tokyo.ac.jp/ftpsync/prep,
  2331.           ftp://ftp.cs.titech.ac.jp/pub/gnu
  2332.  
  2333.     AUSTRALIA: ftp://archie.au/gnu (archie.oz or archie.oz.au for ACSnet)
  2334.  
  2335.     AFRICA: ftp://ftp.sun.ac.za/pub/gnu
  2336.  
  2337.     MIDDLE-EAST: ftp://ftp.technion.ac.il/pub/unsupported/gnu
  2338.  
  2339.     EUROPE: ftp://ftp.denet.dk/pub/gnu,
  2340.             ftp://ftp.funet.fi/pub/gnu,
  2341.             ftp://ftp.informatik.rwth-aachen.de/pub/gnu,
  2342.             ftp://ftp.informatik.tu-muenchen.de/pub/comp/gnu,
  2343.             ftp://ftp.luth.se/pub/unix/gnu,
  2344.             ftp://ftp.stacken.kth.se/pub/gnu,
  2345.             ftp://ftp.win.tue.nl/pub/gnu,
  2346.             ftp://isy.liu.se/pub/gnu,
  2347.             ftp://nic.switch.ch/mirror/gnu,
  2348.             ftp://archive.eu.net/pub/gnu,
  2349.             ftp://ftp.eunet.ch/software/gnu,
  2350.             ftp://ftp.ieunet.ie/pub/gnu,
  2351.             ftp://ftp.mcc.ac.uk/pub/gnu,
  2352.             ftp://ftp.sunet.se:/pub/gnu,
  2353.             ftp://ftp.univ-lyon1.fr/pub/gnu,
  2354.             ftp://irisa.irisa.fr/pub/gnu,
  2355.             ftp://src.doc.ic.ac.uk/gnu,
  2356.             ftp://unix.hensa.ac.uk/pub/uunet/systems/gnu
  2357.  
  2358.     SOUTH AMERICA: ftp.unicamp.br:/pub/gnu
  2359.  
  2360.     WESTERN CANADA: ftp.cs.ubc.ca:/mirror2/gnu
  2361.  
  2362.     USA: ftp://col.hp.com/mirrors/gnu,
  2363.          ftp://f.ms.uky.edu/pub3/gnu,
  2364.          ftp://ftp.cs.columbia.edu/archives/gnu/prep,
  2365.          ftp://ftp.digex.net/pub/gnu,
  2366.          ftp://ftp.hawaii.edu/mirrors/gnu,
  2367.          ftp://ftp.kpc.com/pub/mirror/gnu,
  2368.          ftp://ftp.uu.net/systems/gnu,
  2369.          ftp://gatekeeper.dec.com/pub/GNU,
  2370.          ftp://jaguar.utah.edu/gnustuff,
  2371.          ftp://labrea.stanford.edu/pub/gnu,
  2372.          ftp://mrcnext.cso.uiuc.edu/pub/gnu,
  2373.          ftp://vixen.cso.uiuc.edu/gnu,
  2374.          ftp://wuarchive.wustl.edu/systems/gnu
  2375.  
  2376.   The directory at ftp.uu.net is a mirror of prep except that files larger
  2377.   than one megabyte are split into multiple parts.  If you have trouble
  2378.   transferring large files, you should try that site.  A file normally
  2379.   named "XXX" is split into files XXX-split/part[0-9][0-9], and there will
  2380.   be a file named XXX-split/README which contains the list of parts
  2381.   (especially helpful when FTP-ing by e-mail), their checksums, and
  2382.   reassembly instructions.
  2383.  
  2384. 90:  What is the difference between Emacs and XEmacs (formerly "Lucid
  2385.      Emacs")?
  2386.  
  2387.   First of all, they're both GNU Emacs.  XEmacs is just as much a later
  2388.   version of GNU Emacs 18 as the FSF-distributed version.  This FAQ refers
  2389.   to the latest version to be distributed by the FSF as "Emacs," partly
  2390.   because the XEmacs maintainers now refer to their product using the
  2391.   "XEmacs" name, and partly because there isn't any accurate way to
  2392.   differentiate between the two without getting mired in paragraphs of
  2393.   legalese and history.
  2394.  
  2395.   XEmacs, which began life as Lucid Emacs, is based on an early version of
  2396.   Emacs 19 and Epoch, an X-aware version of Emacs 18.
  2397.  
  2398.   Emacs (i.e., the version distributed by the FSF) has a larger installed
  2399.   base and supports character terminals, while XEmacs can do some clever
  2400.   tricks with X Windows, such as putting arbitrary graphics in a buffer.
  2401.   Emacs and XEmacs each come with Lisp packages that are lacking in the
  2402.   other; RMS says that the FSF would include more packages that come with
  2403.   XEmacs, but that the XEmacs maintainers don't always keep track of the
  2404.   authors of contributed code, which makes it impossible for the FSF to
  2405.   have certain legal papers signed.  (Without these legal papers, the FSF
  2406.   will not distribute Lisp packages with Emacs.)
  2407.  
  2408.   Many XEmacs features have found their way into recent versions of Emacs,
  2409.   and more features can be expected in the future, but there are still many
  2410.   differences between the two packages.
  2411.  
  2412.   The latest version of XEmacs as of this writing is 19.11; you can get it
  2413.   at
  2414.  
  2415.     ftp://ftp.cs.uiuc.edu/pub/xemacs/xemacs-19.11.tar.gz
  2416.  
  2417.   More information about XEmacs, including a list of frequently asked
  2418.   questions (FAQ), is available at
  2419.  
  2420.     http://xemacs.cs.uiuc.edu/
  2421.  
  2422. 91:  Where can I get Emacs for my PC running MS-DOS?
  2423.  
  2424.   Emacs 19 (versions 19.23 and later) should compile right out of the box
  2425.   on PCs with a 386 or better, running MS-DOS 3.0 or later. You will need
  2426.   the following:
  2427.  
  2428.   Compiler: djgpp version 1.11 maint 4 or later.  You can get the latest
  2429.             version by grabbing everything you see at:
  2430.  
  2431.             ftp://oak.oakland.edu/pub/msdos/djgpp
  2432.  
  2433.   Tar:  One DOS version of tar is available at
  2434.  
  2435.         ftp://ftp.urc.tue.nl/pub/unixtools/dos
  2436.  
  2437.         However, not all DOS versions of tar work equally well, so you
  2438.         might have to try others if this one gives you trouble.  The
  2439.         versions known as tar4dos.zip and ltarv3.zip are also supposed to
  2440.         work, as well.
  2441.  
  2442.   Utilities: chmod, make, mv, sed, rm.
  2443.  
  2444.              All of these utilities are available at:
  2445.  
  2446.                ftp://ftp.iro.umontreal.ca/pub/Internet/gnuish
  2447.  
  2448.              You should grab the files futil4ax.zoo (contains chmod.exe,
  2449.              mv.exe, and rm.exe), sed106ax.zoo (contains sed.exe), and
  2450.              gzip07ax.zoo (contains gzip.exe).
  2451.  
  2452.   The file etc/MSDOS contains some information on the differences between
  2453.   the Unix and MS-DOS versions of Emacs.
  2454.  
  2455.   If you would prefer not to compile Emacs by yourself, you can get
  2456.   binaries for Emacs 19.24 at
  2457.  
  2458.       ftp://ftp.demon.co.uk/pub/ibmpc/editors/emacs19.24
  2459.       ftp://ftp.imada.ou.dk/pub/mirrors/msdos/emacs-19.24
  2460.  
  2461.   Some useful information on the MS-DOS version of Emacs is available at
  2462.  
  2463.     http://www.diku.dk/~terra/emacs.html
  2464.  
  2465.   OEmacs (see question 92) also runs under MS-DOS.
  2466.  
  2467.   For a list of other MS-DOS implementations of Emacs (and Emacs
  2468.   look-alikes), consult the list of "Emacs implementations and literature,"
  2469.   available at
  2470.  
  2471.     ftp://rtfm.mit.edu/pub/usenet/comp.emacs
  2472.  
  2473.   Note that while many of these programs look similar to Emacs, they often
  2474.   lack certain features, such as the Emacs Lisp extension language.
  2475.  
  2476. 92:  Where can I get Emacs for Microsoft Windows?
  2477.  
  2478.   * GNU Emacs
  2479.  
  2480.     Emacs is alleged to run under Windows in a DOS box.
  2481.  
  2482.   * OEmacs
  2483.  
  2484.     OEmacs 4.1 is a port of Emacs 19.19 that was written as a successor to
  2485.     DEmacs (a DOS port of Emacs 18).  It runs in text mode under MS-DOS, in
  2486.     a DOS box under Windows 3.1, and as a native X11 application under
  2487.     DESQview/X.  OEmacs supports color, the mouse, and many other features.
  2488.     It complies with the GPL.  Get it from any site that mirrors SIMTEL20's
  2489.     MS-DOS collection, including ftp://oak.oakland.edu//pub/msdos/oemacs/.
  2490.  
  2491.   * Win-Emacs
  2492.  
  2493.     Win-Emacs 1.35 is a port by Pearl Software <info@pearlsoft.com> of
  2494.     Lucid Emacs 19.6 which runs as a Windows application under Windows 3.1
  2495.     and Windows NT.  It supports Windows features such as DDE, winsock, and
  2496.     drag-and-drop.  Win-Emacs itself is free software, and is available at
  2497.  
  2498.       ftp://ftp.netcom.com/pub/pe/pearl/
  2499.  
  2500.     However, you will need an X Windows emulator for Microsoft Windows in
  2501.     order to run Win-Emacs; Pearl Software just happens to sell a non-free
  2502.     version of such an emulator.  (In other words, Win-Emacs itself is
  2503.     free, but requires the use of proprietary software.)  Whether this is
  2504.     appropriate or acceptable under the terms of the GNU General Public
  2505.     License has been debated extensively; see question 7.
  2506.  
  2507. 93:  Where can I get Emacs for Windows NT?
  2508.  
  2509.   * Congruent's NTEmacs
  2510.  
  2511.     Conguent Corporation's Windows NT port of Emacs 19.16, "ntemacs.exe",
  2512.     can be found in microlib.cc.utexas.edu:/microlib/nt/gnu/gnubin.tar.Z.
  2513.     Congruent sells support and can be reached at (212) 431-5100.
  2514.  
  2515.   * Voelker's NTEmacs
  2516.  
  2517.     NTEmacs is a port of Emacs 19.17 to Windows NT which is maintained by
  2518.     Geoff Voelker <voelker@cs.washington.edu>.  It is known to run on Intel
  2519.     x86, MIPS R4000, DEC Alpha AXP, and PowerPC architectures.  While it
  2520.     doesn't use native NT windowing, it does support processes, the mouse,
  2521.     and most other features of Emacs.
  2522.  
  2523.     You can get a copy of NTEmacs from
  2524.  
  2525.       ftp://cs.washington.edu/pub/ntemacs/
  2526.  
  2527.     A beta test version of Emacs 19.27 ported to Windows NT is available
  2528.     from june.cs.washington.edu:pub/voelker/trial and will be incorporated
  2529.     in a future release of Emacs.
  2530.  
  2531. 94:  Where can I get Emacs for my PC running OS/2?
  2532.  
  2533.   Emacs 19.27 is ported for emx on OS/2 2.0 or 2.1, and is available at:
  2534.  
  2535.     ftp://hobbes.nmsu.edu/os2/32bit/unix/emacs27
  2536.     ftp://ftp.cdrom.com:/pub/os2/32bit/unix/emacs27
  2537.  
  2538. 95:  Where can I get Emacs for my Atari ST?
  2539.  
  2540.   GNU Emacs 18 is available for the Atari ST running MiNT. It can be found
  2541.   at
  2542.  
  2543.     http://www.umich.edu/group/itd/archive/Public/html/atari/Editors/Emacs-1858/
  2544.  
  2545. 96:  Where can I get Emacs for my Amiga?
  2546.  
  2547.   Amiga software is available through Aminet, a set of interconnected FTP
  2548.   sites and other file accessing services for Amiga software.  The primary
  2549.   sites for Aminet are ftp.wustl.edu (128.252.135.4) and ftp.cdrom.com
  2550.   (192.153.46.2).  In the directory pub/aminet/util/gnu, there are
  2551.  
  2552.         a1.26-emacs-bin.lha -- Amiga GNU Emacs V1.26, binaries
  2553.         a1.26-emacs-src.lha -- Amiga GNU Emacs V1.26, sources
  2554.  
  2555.   There are also quite a few Emacs related files/programs.  Please search
  2556.   the index of Aminet.
  2557.  
  2558.   David Gilbert <dgilbert@gamiga.guelphnet.dweomer.ORG> recently announced
  2559.   the availability of a beta release of Emacs 19.25 for the Amiga.  You can
  2560.   get the binary at
  2561.  
  2562.     ftp://ftp.wustl.edu/pub/aminet/utils/gnu/a2.0bEmacs-bin.LHA
  2563.  
  2564.   We have no access to an Amiga, so please send in your experience and
  2565.   comments on the implementation.
  2566.  
  2567. 97:  Where can I get Emacs for NeXTSTEP?
  2568.  
  2569.   Emacs.app is a NeXTSTEP version of Emacs 19.22 which supports colors,
  2570.   menus, and multiple frames.  You can get it from
  2571.  
  2572.   ftp://ftp.cs.orst.edu/software/NeXT/binaries/editors/Emacs_for_NeXTstep_4.0.pkg.tar.gz
  2573.  
  2574. 98:  Where can I get Emacs for my Apple computer?
  2575.  
  2576.   Until recently, the FSF participated in the League for Programming
  2577.   Freedom's boycott of Apple because of Apple's "look and feel" copyright
  2578.   suits.  (RMS confirmed in early February that "The boycott was
  2579.   unsuccessful because not enough people were boycotting, so the LPF
  2580.   decided to end it.")
  2581.  
  2582.   An unofficial port of GNU Emacs 18.59 to the Macintosh is available at a
  2583.   number of ftp sites, the home being
  2584.  
  2585.     ftp://ftp.cs.cornell.edu/pub/parmet
  2586.  
  2587. 99:  Where do I get Emacs that runs on VMS under DECwindows?
  2588.  
  2589.   Version 19.28 has a VMS directory containing installation instructions, a
  2590.   makefile, and various .com files.  But according to Richard Levitte
  2591.   <levitte@e.kth.se>, it does not run out of the box.  Even if it does, the
  2592.   VMSNOTES indicates that the Emacs on VMS is going to have much more
  2593.   limited functionality.  Richard Levitte has a patched 19.22 that
  2594.   supposedly has subprocess and networking functionality just as on Unix,
  2595.   with virtually the same lisp interface.  The source is available at
  2596.  
  2597.     ftp://ftp.vms.stacken.kth.se/GNU-VMS/Beta/EMACS-19_22-********.TAR-GZ
  2598.  
  2599.   where ******** is the release date of the kit.  For more information, see
  2600.  
  2601.     http://www.e.kth.se/~levitte/gnu/emacs_faq.html
  2602.  
  2603. 100: Where can I get modes for Lex, Yacc/Bison, Bourne shell, Csh, C++,
  2604.      Objective C, Pascal, and Awk?
  2605.  
  2606.   Most of these modes are now available in standard Emacs distribution.  To
  2607.   get additional modes, look in the Lisp Code Directory (see question 86).
  2608.   For C++, if you use lisp-dir-apropos, you must specify the pattern like
  2609.   this:
  2610.  
  2611.     M-x lisp-dir-apropos RET c\+\+ RET
  2612.  
  2613.   Note that Barry Warsaw's cc-mode now works for C, C++, and Objective-C
  2614.   code.  You can get the latest version from the Emacs Lisp Archive; see
  2615.   question 87 for details.
  2616.  
  2617. 101: What is the IP address of XXX.YYY.ZZZ?
  2618.  
  2619.   If your site's nameserver is deficient, you can use IP addresses to FTP
  2620.   files.  You can get this information by
  2621.  
  2622.   * E-mail:
  2623.  
  2624.     To: dns@[134.214.84.25]              (to grasp.insa-lyon.fr)
  2625.     Body: ip XXX.YYY.ZZZ                 (or "help" for more information
  2626.                                                 and options - no quotes)  
  2627.     or:
  2628.  
  2629.     To: resolve@[147.31.254.130]         (to cs.widener.edu)
  2630.     Body: site XXX.YYY.ZZZ
  2631.  
  2632.   * Telnet:
  2633.     
  2634.     telnet 192.82.113.1 117              (to acom-emh1.army.mil)
  2635.     Hostname or IP address: XXX.YYY.ZZZ
  2636.  
  2637. Archive-name: GNU-Emacs-FAQ/part4
  2638.  
  2639. ------------------------------------------------------------
  2640.  
  2641. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
  2642. $" to get an overview of just the questions.  Then, when you want to look
  2643. at the text of the answers, just type "C-x $".
  2644.  
  2645. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
  2646. C-r if that doesn't work.  Type RET to end the search.
  2647.  
  2648. If you have w3-mode installed (see question 110), you can visit ftp and
  2649. HTTP uniform resource locators (URLs) by placing the cursor on the URL and
  2650. typing M-x w3-follow-url-at-point.
  2651.  
  2652. Full instructions for getting the latest FAQ are in question 22.
  2653.  
  2654. ------------------------------------------------------------
  2655.  
  2656.  
  2657.  
  2658. Major Emacs Lisp Packages, Emacs Extensions, and Related Programs
  2659.  
  2660. 102: VM (View Mail) -- another mail reader within Emacs
  2661.  
  2662.   Author: Kyle Jones <kyle@uunet.uu.net>
  2663.   Latest version: 5.72 (beta)
  2664.   Anonymous FTP:
  2665.     ftp://ftp.uu.net/networking/mail/vm/vm-5.72beta.tar.gz
  2666.   Newsgroups and mailing lists:
  2667.     Informational newsgroup/mailing list:
  2668.       gnu.emacs.vm.info (newsgroup)
  2669.       info-vm-request@uunet.uu.net (for subscriptions)
  2670.       info-vm@uunet.uu.net (for submissions)
  2671.     Bug reports newsgroup/mailing list:
  2672.       gnu.emacs.vm.bug (newsgroup)
  2673.       bug-vm-request@uunet.uu.net (for subscriptions)
  2674.       bug-vm@uunet.uu.net (for submissions)
  2675.  
  2676. 103: SuperCite -- mail and news citation package within Emacs
  2677.  
  2678.   Author: Barry Warsaw <bwarsaw@cen.com>
  2679.   Latest version: 3.54 (comes with Emacs 19)
  2680.                   3.1  (available from the Emacs Lisp Archive)
  2681.   Anonymous FTP:
  2682.     ftp://archive.cis.ohio-state.edu/pub/gnu/emacs/elisp-archive/packages/sc3.1.tar.Z
  2683.   Mailing list:
  2684.     supercite-request@anthem.nlm.nih.gov (for subscriptions)
  2685.     supercite@anthem.nlm.nih.gov (for submissions)
  2686.   NOTE: Superyank is an old version of SuperCite.
  2687.  
  2688. 104: Calc -- poor man's Mathematica within Emacs
  2689.  
  2690.   Author: Dave Gillespie <daveg@csvax.cs.caltech.edu>
  2691.   Latest version: 2.02c
  2692.   Anonymous FTP:
  2693.     ftp://prep.ai.mit.edu/pub/gnu/calc-2.02c.tar.gz
  2694.   NOTE: Unlike Wolfram Research, Dave has never threatened to sue
  2695.         anyone for having a program with a similar command language to
  2696.         Calc.  :-)
  2697.  
  2698. 105: VIP -- vi emulation for Emacs
  2699.  
  2700.   Author: Aamod Sane <sane@cs.uiuc.edu>
  2701.   Latest version: 4.3
  2702.   Anonymous FTP:
  2703.     ftp://cs.uiuc.edu/pub/vip4.3.tar.Z
  2704.     ftp://archive.cis.ohio-state.edu/pub/gnu/emacs/elisp-archive/modes/vip-mode.tar.Z
  2705.   NOTE: This version much more closely emulates vi than the one
  2706.   distributed with Emacs.
  2707.  
  2708. 106: AUC TeX -- enhanced LaTeX mode with debugging facilities
  2709.  
  2710.   Authors: Kresten Krab Thorup <krab@iesd.auc.dk>
  2711.            and Per Abrahamsen <abraham@iesd.auc.dk>
  2712.   Latest version: 9.2y
  2713.   Anonymous FTP:
  2714.     ftp://ftp.iesd.auc.dk/pub/emacs-lisp/auctex-9.2y.tar.gz
  2715.   Mailing list:
  2716.     auc-tex-request@iesd.auc.dk (for subscriptions)
  2717.     auc-tex@iesd.auc.dk (for submissions)
  2718.     auc-tex_mgr@iesd.auc.dk (auc-tex development team)
  2719.   World-Wide Web:
  2720.     http://www.iesd.auc.dk/~amanda/auctex/
  2721.  
  2722. 107: Hyperbole -- extensible hypertext management system within Emacs
  2723.  
  2724.   Author: Bob Weiner <rsw@cs.brown.edu>
  2725.   Latest version: 3.16
  2726.   Anonymous FTP:
  2727.     ftp://wilma.cs.brown.edu/pub/hyperbole/h3.16.tar.Z
  2728.   Mailing lists:
  2729.     hyperbole-announce -- Hyperbole release announcements only.
  2730.       Subscriptions:
  2731.         To: hyperbole-request@cs.brown.edu
  2732.         Subject: Add <mailbox@domain.name> to hyperbole-announce
  2733.     hyperbole -- Hyperbole discussion.
  2734.       Subscriptions:
  2735.         To: hyperbole-request@cs.brown.edu
  2736.         Subject: Add <mailbox@domain.name> to hyperbole
  2737.       Submissions:
  2738.         hyperbole@cs.brown.edu
  2739.     NOTE: Any member of the hyperbole mailing list is automatically a
  2740.           member of the hyperbole-announce mailing list.
  2741.     NOTE: No .UUCP or ! addresses are allowed on these mailing lists.
  2742.  
  2743. 108: BBDB -- personal Info Rolodex integrated with mail/news readers
  2744.  
  2745.   Author: Jamie Zawinski <jwz@netscape.com>
  2746.   Latest released version: 1.50
  2747.   Anonymous FTP:
  2748.     ftp://archive.cis.ohio-state.edu/pub/gnu/emacs/elisp-archive/packages/bbdb-1.50.tar.Z
  2749.   Mailing lists:
  2750.     info-bbdb-request@cs.uiuc.edu (for subscriptions)
  2751.     info-bbdb@cs.uiuc.edu (for submissions)
  2752.     bbdb-announce-request@cs.uiuc.edu (to be informed of new releases)
  2753.     NOTE: BBDB does not work with VM 4.  It does work with VM 5,
  2754.           Rmail, Gnus, and MH-E.
  2755.  
  2756. 109: Ispell -- spell checker in C with interface for Emacs
  2757.  
  2758.   Author: Geoff Kuenning <geoff@itcorp.com>
  2759.   Latest released version: 3.1.18
  2760.   Anonymous FTP:
  2761.    Master Sites:
  2762.      ftp://ftp.cs.ucla.edu/pub/ispell/ispell-3.1.18.tar.gz
  2763.      ftp://ftp.math.orst.edu/pub/ispell/ispell-3.1.18.tar.gz
  2764.    Known Mirror Sites:
  2765.      ftp://ftp.th-darmstadt.de/pub/dicts/ispell/
  2766.      ftp://ftp.nl.net/pub/textproc/ispell/
  2767.  
  2768.   NOTE: * Do not ask Geoff to send you the latest version of Ispell.
  2769.           He does not have free e-mail.
  2770.        
  2771.         * This Ispell program is distinct from GNU Ispell 4.0. GNU
  2772.           Ispell 4.0 is no longer a supported product.
  2773.  
  2774. 110: W3-mode -- A World-Wide Web browser inside of Emacs
  2775.  
  2776.   Author: Bill Perry <wmperry@spry.com>
  2777.   Latest version: 2.1.85, but new ones come out every week or two
  2778.   Anonymous FTP:
  2779.     ftp://cs.indiana.edu/pub/elisp/w3/w3.tar.gz
  2780.   Mailing lists:
  2781.     w3-announce-request@indiana.edu (to get announcements of new versions)
  2782.     w3-beta-request@indiana.edu (for beta-testers of new versions)
  2783.     w3-dev@indiana.edu (for developers of W3)
  2784.  
  2785. 111: EDB -- Database program for Emacs; replaces forms editing modes
  2786.  
  2787.   Author: Michael Ernst <mernst@theory.lcs.mit.edu>
  2788.   Latest version: 1.18
  2789.   Anonymous FTP:
  2790.     ftp://theory.lcs.mit.edu/pub/emacs/edb-1.18  
  2791.   Newsgroups and mailing lists:
  2792.     edb-list-request@theory.lcs.mit.edu (for subscriptions)
  2793.     edb-list@theory.lcs.mit.edu (for submissions)
  2794.  
  2795. 112: Patch -- program to apply "diffs" for updating files
  2796.  
  2797.   Author: Larry Wall <lwall@netlabs.com>
  2798.   Latest version: 2.1
  2799.   Anonymous FTP: See question 89
  2800.  
  2801.  
  2802. Changing Key Bindings and Handling Key Binding Problems
  2803.  
  2804. 113: How do I bind keys (including function keys) to commands?
  2805.  
  2806.   Keys can be bound to commands either interactively or in your .emacs
  2807.   file.  To interactively bind keys for all modes, type
  2808.  
  2809.     M-x global-set-key RET KEY CMD RET
  2810.  
  2811.   To bind a key just in the current major mode, type
  2812.  
  2813.     M-x local-set-key RET KEY CMD RET
  2814.  
  2815.   See "Key Bindings" in the on-line manual for further details.
  2816.  
  2817.   To bind keys on starting Emacs or on starting any given mode, use the
  2818.   following "trick": First bind the key interactively, then immediately
  2819.   type "C-x ESC ESC C-a C-k C-g".  Now, the command needed to bind the key
  2820.   is in the kill ring, and can be yanked into your .emacs file.  If the key
  2821.   binding is global, no changes to the command are required.  For example,
  2822.  
  2823.     (global-set-key (quote [f1]) (quote help-for-help))
  2824.  
  2825.   can be placed directly into the .emacs file.  If the key binding is
  2826.   local, the command is used in conjunction with the "add-hook" command.
  2827.   For example, in tex-mode, a local binding might be
  2828.  
  2829.     (add-hook 'tex-mode-hook
  2830.       (function (lambda ()
  2831.         (local-set-key (quote [f1]) (quote help-for-help))))
  2832.  
  2833.   NOTE: * Control characters in key sequences, in the form yanked from the
  2834.           kill ring are given in their graphic form -- i.e., CTRL is shown
  2835.           as `^', TAB as a set of spaces (usually 8), etc.  You may want to
  2836.           convert these into their vector or string forms.
  2837.  
  2838.         * If a prefix key of the character sequence to be bound is already
  2839.           bound as a complete key, then you must unbind it before the new
  2840.           binding.  For example, if "ESC {" is previously bound:
  2841.  
  2842.                     (global-unset-key [?\e ?{])   ;;   or
  2843.                      (local-unset-key [?\e ?{])
  2844.  
  2845.         * Aside from commands and "lambda lists," a vector or string also
  2846.           can be bound to a key and thus treated as a macro.  For example:
  2847.  
  2848.            (global-set-key [f10] [?\C-x?\e?\e?\C-a?\C-k?\C-g])  ;;  or
  2849.            (global-set-key [f10] "\C-x\e\e\C-a\C-k\C-g")
  2850.  
  2851.         * XEmacs has a completely different syntax for binding keys; don't
  2852.           follow these directions if you are using XEmacs.
  2853.  
  2854. 114: Why does Emacs say "Key sequence XXX uses invalid prefix characters"?
  2855.  
  2856.   Usually, one of two things has happened.  In one case, the control
  2857.   character in the key sequence has been misspecified (e.g. "C-f" used
  2858.   instead of "\C-f" within a Lisp expression).  In the other case, a
  2859.   "prefix key" in the keystroke sequence you were trying to bind was
  2860.   already bound as a "complete key."  Historically, the "ESC [" prefix was
  2861.   usually the problem, in which case you should evaluate either of these
  2862.   forms before attempting to bind the key sequence:
  2863.  
  2864.     (global-unset-key [?\e ?[])  ;;  or
  2865.     (global-unset-key "\e[")
  2866.  
  2867. 115: Why doesn't this [terminal or window-system setup] code work in my
  2868.      .emacs file, but it works just fine after Emacs starts up?
  2869.  
  2870.   During startup, Emacs initializes itself according to a given code/file
  2871.   order.  If some of the code executed in your .emacs file needs to be
  2872.   postponed until the initial terminal or window-system setup code has been
  2873.   executed but is not, then you will experience this problem (this
  2874.   code/file execution order is not enforced after startup).
  2875.  
  2876.   To postpone the execution of Emacs Lisp code until after terminal or
  2877.   window-system setup, treat the code as a "lambda list" and set the value
  2878.   of either the "term-setup-hook" or "window-setup-hook" variable to this
  2879.   "lambda function."  For example,
  2880.  
  2881.     (setq term-setup-hook
  2882.           (function
  2883.            (lambda ()
  2884.              (cond ((string-match "\\`vt220" (or (getenv "TERM") ""))
  2885.                     ;; Make vt220's "Do" key behave like M-x:
  2886.                     (global-set-key [do] 'execute-extended-command))
  2887.                    ))))
  2888.  
  2889.   For information on what Emacs does every time it is started, see the
  2890.   lisp/startup.el file.
  2891.  
  2892. 116: How do I use function keys under X Windows?
  2893.  
  2894.   With Emacs 19, functions keys under X are bound like any other key.  See
  2895.   question 113 for details.
  2896.  
  2897. 117: How do I tell what characters or symbols my function or arrow keys
  2898.      emit?
  2899.  
  2900.   Type "C-h c" then the function or arrow keys.  The command will return
  2901.   either a function key symbol or character sequence (see the Emacs on-line
  2902.   documentation for an explanation).  This works for other keys as well.
  2903.  
  2904. 118: How do I set the X key "translations" for Emacs?
  2905.  
  2906.   Emacs is not written using the Xt library by default, so there are no
  2907.   "translations" to be set.  (We aren't sure how to set such translations
  2908.   if you do build Emacs with Xt; please let us know if you've done this!)
  2909.  
  2910.   The only way to affect the behavior of keys within Emacs is through
  2911.   "xmodmap" (outside Emacs) or "define-key" (inside Emacs).  The
  2912.   "define-key" command should be used in conjunction with the
  2913.   "function-key-map" map.  For instance,
  2914.  
  2915.      (define-key function-key-map [M-tab] [?\M-\t])
  2916.  
  2917.   defines the "M-TAB" key sequence.
  2918.  
  2919. 119: How do I handle C-s and C-q being used for flow control?
  2920.  
  2921.   C-s and C-q are used in the XON/XOFF flow control protocol.  This messes
  2922.   things up when you're using Emacs, because Emacs binds these keys to
  2923.   commands by default.  Because Emacs won't honor them as flow control
  2924.   characters, too many of these characters are not passed on and overwhelm
  2925.   output buffers.  Sometimes, intermediate software using XON/XOFF flow
  2926.   control will prevent Emacs from ever seeing C-s and C-q.
  2927.  
  2928.   Possible solutions:
  2929.  
  2930.   * Disable the use of C-s and C-q for flow control.
  2931.  
  2932.     You need to determine the cause of the flow control.
  2933.  
  2934.     * your terminal
  2935.  
  2936.       Your terminal may use XON/XOFF flow control to have time to display
  2937.       all the characters it receives.  For example, VT series terminals do
  2938.       this.  It may be possible to turn this off from a setup menu.  For
  2939.       example, on a VT220 you may select "No XOFF" in the setup menu.  This
  2940.       is also true for some terminal emulation programs on PCs.
  2941.  
  2942.       When you turn off flow control at the terminal, you will also need to
  2943.       turn it off at the other end, which might be at the computer you are
  2944.       logged in to or at some terminal server in between.
  2945.  
  2946.       If you turn off flow control, characters may be lost; using a printer
  2947.       connected to the terminal may fail.  You may be able to get around
  2948.       this problem by modifying the "termcap" entry for your terminal to
  2949.       include extra NUL padding characters.
  2950.  
  2951.     * a modem
  2952.  
  2953.       If you are using a dialup connection, the modems may be using
  2954.       XON/XOFF flow control.  It's not clear how to get around this.
  2955.  
  2956.     * a router or terminal server
  2957.  
  2958.       Some network box between the terminal and your computer may be using
  2959.       XON/XOFF flow control.  It may be possible to make it use some other
  2960.       kind of flow control.  You will probably have to ask your local
  2961.       network experts for help with this.
  2962.  
  2963.     * tty and/or pty devices
  2964.  
  2965.       If your connection to Emacs goes through multiple tty and/or pty
  2966.       devices, they may be using XON/XOFF flow control even when it is not
  2967.       necessary.
  2968.  
  2969.       Eirik Fuller <eirik@theory.tn.cornell.edu> writes:
  2970.  
  2971.         Some versions of "rlogin" (and possibly telnet) do not pass flow
  2972.         control characters to the remote system to which they connect.  On
  2973.         such systems, Emacs on the remote system cannot disable flow
  2974.         control on the local system.  Sometimes "rlogin -8" will avoid this
  2975.         problem.
  2976.  
  2977.         One way to cure this is to disable flow control on the local host
  2978.         (the one running rlogin, not the one running rlogind) using the
  2979.         stty command, before starting the rlogin process.  On many systems,
  2980.         "stty start u stop u" will do this.
  2981.  
  2982.         Some versions of "tcsh" will prevent even this from working.  One
  2983.         way around this is to start another shell before starting rlogin,
  2984.         and issue the stty command to disable flow control from that shell.
  2985.  
  2986.       Use "stty -ixon" instead of "stty start u stop u" on some systems.
  2987.  
  2988.   * Make Emacs speak the XON/XOFF flow control protocol.
  2989.  
  2990.     You can make Emacs treat C-s and C-q as flow control characters by
  2991.     evaluating the form
  2992.  
  2993.       (enable-flow-control)
  2994.  
  2995.     to unconditionally enable flow control or
  2996.  
  2997.       (enable-flow-control-on "vt100" "h19")
  2998.  
  2999.     (using your terminal names instead of "vt100" or "h19") to enable
  3000.     selectively.  These commands will automatically swap `C-s' and `C-q' to
  3001.     `C-\' and `C-^'.  Variables can be used to change the default swap keys
  3002.     ("flow-control-c-s-replacement" and "flow-control-c-q-replacement").
  3003.  
  3004.     If you are fixing this for yourself, simply put the form in your .emacs
  3005.     file.  If you are fixing this for your entire site, the best place to
  3006.     put it is in the lisp/site-start.el file.  Putting this form in
  3007.     lisp/default.el has the problem that if the user's .emacs file has an
  3008.     error, this will prevent lisp/default.el from being loaded and Emacs
  3009.     may be unusable for the user, even for correcting their .emacs file
  3010.     (unless they're smart enough to move it to another name).
  3011.  
  3012.     For further discussion of this issue, read the file PROBLEMS (in the
  3013.     top-level directory when you unpack the Emacs source).
  3014.  
  3015. 120: How do I bind `C-s' and `C-q' (or any key) if these keys are filtered
  3016.      out?
  3017.  
  3018.   To bind `C-s' and `C-q', use either "enable-flow-control" or
  3019.   "enable-flow-control-on".  See question 119 for usage and implementation
  3020.   details.
  3021.  
  3022.   To bind other keys, use "keyboard-translate".  See question 123 for usage
  3023.   details.  To do this for an entire site, you should swap the keys in
  3024.   lisp/site-start.el.  See question 119 for an explanation of why
  3025.   lisp/default.el should not be used.
  3026.  
  3027.   NOTE: * If you do this for an entire site, the users will be confused by
  3028.           the disparity between what the documentation says and how Emacs
  3029.           actually behaves.
  3030.  
  3031. 121: Why does the "Backspace" key invoke help?
  3032.  
  3033.   The "Backspace" key (on most keyboards) generates ASCII code 8.  `C-h'
  3034.   sends the same code.  In Emacs by default `C-h' invokes help-command.
  3035.   This is intended to be easy to remember since the first letter of "help"
  3036.   is `h'.  The easiest solution to this problem is to use `C-h' (and
  3037.   Backspace) for help and DEL (the Delete key) for deleting the previous
  3038.   character.
  3039.  
  3040.   For many people this solution may be problematic:
  3041.  
  3042.   * They normally use Backspace outside of Emacs for deleting the previous
  3043.     character.  This can be solved by making DEL the command for deleting
  3044.     the previous character outside of Emacs.  On many Unix systems, this
  3045.     command will remap DEL:
  3046.  
  3047.       stty erase `^?'
  3048.  
  3049.   * The person may prefer using the Backspace key for deleting the previous
  3050.     character because it is more conveniently located on their keyboard or
  3051.     because they don't even have a separate Delete key.  In this case, the
  3052.     Backspace key should be made to behave like Delete.  There are several
  3053.     methods.
  3054.  
  3055.   * Some terminals (e.g., VT3## terminals) allow the character generated by
  3056.     the Backspace key to be changed from a setup menu.
  3057.  
  3058.   * You may be able to get a keyboard that is completely programmable.
  3059.  
  3060.   * Under X or on a dumb terminal, it is possible to swap the Backspace and
  3061.     Delete keys inside Emacs:
  3062.  
  3063.       (keyboard-translate ?\C-h ?\C-?)
  3064.  
  3065.     See question 123 for further details of "keyboard-translate".
  3066.  
  3067.   * Another approach is to switch key bindings and put help on "C-x h"
  3068.     instead:
  3069.  
  3070.       (global-set-key [?\C-h] 'delete-backward-char)
  3071.       (global-set-key [?\C-x ?h] 'help-command)
  3072.                                ;; overrides mark-whole-buffer
  3073.  
  3074.     Other popular key bindings for help are M-? and "C-x ?".
  3075.  
  3076.     NOTE: * Don't try to bind DEL to help-command, because there are many
  3077.             modes that have local bindings of DEL that will interfere.
  3078.  
  3079. 122: Why doesn't Emacs look at the stty settings for Backspace vs. Delete?
  3080.  
  3081.   Good question!
  3082.  
  3083. 123: How do I "swap" two keys?
  3084.  
  3085.   In Emacs 19, you can swap two keys (or key sequences) by using the
  3086.   "keyboard-translate" function.  For example, to turn `C-h' into DEL and
  3087.   DEL to `C-h', use
  3088.  
  3089.         (keyboard-translate ?\C-h ?\C-?)  ; translate `C-h' to DEL
  3090.         (keyboard-translate ?\C-? ?\C-h)  ; translate DEL to `C-h'.
  3091.  
  3092.   The first key sequence of the pair after the function identifies what is
  3093.   produced by the keyboard; the second, what is matched for in the keymaps.
  3094.  
  3095.   Keyboard translations are not the same as key bindings in keymaps.  Emacs
  3096.   contains numerous keymaps that apply in different situations, but there
  3097.   is only one set of keyboard translations, and it applies to every
  3098.   character that Emacs reads from the terminal.  Keyboard translations take
  3099.   place at the lowest level of input processing; the keys that are looked
  3100.   up in keymaps contain the characters that result from keyboard
  3101.   translation.
  3102.  
  3103.   Also see "Keyboard Translations" in the on-line manual.
  3104.  
  3105. 124: How do I produce C-XXX with my keyboard?
  3106.  
  3107.   On terminals (but not under X), some common "aliases" are:
  3108.  
  3109.             C-2  or  C-SPC         for      C-@
  3110.             C-6                    for      C-^
  3111.             C-7  or  C-S--         for      C-_
  3112.             C-4                    for      C-\
  3113.             C-5                    for      C-]
  3114.             C-/                    for      C-?
  3115.  
  3116.   Often other aliases exist; use the "C-h c" command and try `CTRL' with
  3117.   all of the digits on your keyboard to see what gets generated.  You can
  3118.   also try the "C-h w" command if you know the name of the command.
  3119.  
  3120. 125: What if I don't have a Meta key?
  3121.  
  3122.   Instead of typing "M-a", you can type "ESC a".  In fact, Emacs converts
  3123.   M-a internally into "ESC a" anyway (depending on the value of
  3124.   meta-prefix-char).  Note that you press "Meta" and `a' together, while
  3125.   you press `ESC', release it, and then press `a'.
  3126.  
  3127. 126: What if I don't have an Escape key?
  3128.  
  3129.   Type `C-[' instead.  This should send ASCII code 27 just like an Escape
  3130.   key would.  `C-3' may also work on some terminal (but not under X).  For
  3131.   many terminals (notably DEC terminals) `F11' generates ESC.  If not, the
  3132.   following form can be used to bind it:
  3133.  
  3134.   (define-key function-key-map [f11] [?\e])  ; F11 is the documented ESC
  3135.                                              ; replacement on DEC terminals.
  3136.  
  3137. 127: Can I make my "Compose Character" key behave like a Meta key?
  3138.  
  3139.   On a dumb terminal such as a VT220, no.  It is rumored that certain VT220
  3140.   clones could have their Compose key configured this way.  If you're using
  3141.   X, you might be able to do this with the "xmodmap" program.
  3142.  
  3143. 128: How do I bind a combination of modifier key and function key?
  3144.  
  3145.   With Emacs 19 you can represent modified function keys in vector format
  3146.   by adding prefixes to the function key symbol.  For example (from the
  3147.   on-line documentation):
  3148.  
  3149.            (global-set-key [?\C-x right] 'forward-page)
  3150.  
  3151.   where "?\C-x" is the Lisp character constant for the character "C-x".
  3152.  
  3153.   You can use the modifier keys Control, Meta, Hyper, Super, Alt, and Shift
  3154.   with function keys.  To represent these modifiers, prepend the strings
  3155.   "C-", "M-", "H-", "s-", "A-", and "S-" to the symbol name.  Here is how
  3156.   to make "Hyper-Meta-RIGHT" move forward a word:
  3157.  
  3158.            (global-set-key [H-M-right] 'forward-word)
  3159.  
  3160.   NOTE: * Not all modifiers are permitted in all situations.  Hyper, Super,
  3161.           and Alt are available only under X (provided there are such
  3162.           keys).  Non-ASCII keys and mouse events (e.g. "C-=" and
  3163.           "mouse-1") also fall under this category.
  3164.  
  3165.   See question 113 for general key binding instructions.
  3166.  
  3167. 129: Why doesn't my Meta key work in an xterm window?
  3168.  
  3169.   Try all of these methods before asking for further help:
  3170.  
  3171.   * You may have big problems using "mwm" as your window manager.  {Does
  3172.     anyone know a good generic solution to allow the use of the Meta key in
  3173.     Emacs with mwm?}
  3174.  
  3175.   * For X11: Make sure it really is a Meta key.  Use "xev" to find out what
  3176.     keysym your Meta key generates.  It should be either Meta_L or Meta_R.
  3177.     If it isn't, use xmodmap to fix the situation.
  3178.  
  3179.   * Make sure the pty the xterm is using is passing 8 bit characters.
  3180.     "stty -a" (or "stty everything") should show "cs8" somewhere.  If it
  3181.     shows "cs7" instead, use "stty cs8 -istrip" (or "stty pass8") to fix
  3182.     it.
  3183.  
  3184.   * If there is an rlogin connection between the xterm and the Emacs, the
  3185.     "-8" argument may need to be given to rlogin to make it pass all 8 bits
  3186.     of every character.
  3187.  
  3188.   * If the Emacs is running under Ultrix, it is reported that evaluating
  3189.     (set-input-mode t nil) helps.
  3190.  
  3191.   * If all else fails, you can make xterm generate "ESC W" when you type
  3192.     M-W, which is the same conversion Emacs would make if it got the M-W
  3193.     anyway.  In X11R4, the following resource specification will do this:
  3194.  
  3195.       XTerm.VT100.EightBitInput: false
  3196.  
  3197.     (This changes the behavior of the insert-eight-bit action.)
  3198.  
  3199.     With older xterms, you can specify this behavior with a translation:
  3200.  
  3201.       XTerm.VT100.Translations: #override \
  3202.         Meta<KeyPress>: string(0x1b) insert()
  3203.  
  3204.     You might have to replace "Meta" with "Alt".
  3205.  
  3206. 130: Why doesn't my ExtendChar key work as a Meta key under HP-UX 8.0?
  3207.  
  3208.   This is a result of an internationalization extension in X11R4 and the
  3209.   fact that HP is now using this extension.  Emacs assumes that
  3210.   XLookupString returns the same result regardless of the Meta key state
  3211.   which is no longer necessarily true.  Until Emacs is fixed, the temporary
  3212.   kludge is to run this command after each time the X server is started but
  3213.   preferably before any xterm clients are:
  3214.  
  3215.     xmodmap -e 'remove mod1 = Mode_switch'
  3216.  
  3217.   NOTE: This will disable the use of the extra keysyms systemwide, which
  3218.   may be undesirable if you actually intend to use them.
  3219.  
  3220.  
  3221. Using Emacs with Alternate Character Sets
  3222.  
  3223. 131: How do I make Emacs display 8-bit characters?
  3224.  
  3225.   Emacs 19 has built-in support for 8-bit characters.  Here is an excerpt
  3226.   from the "European Display" page of the on-line manual:
  3227.  
  3228.     Some European languages use accented letters and other special symbols.
  3229.     The ISO 8859 Latin-1 character set defines character codes for many
  3230.     European languages in the range 160 to 255.
  3231.  
  3232.     Emacs can display those characters according to Latin-1, provided the
  3233.     terminal or font in use supports them.  The "M-x
  3234.     standard-display-european" command toggles European character display
  3235.     mode.  With a numeric argument, "M-x standard-display-european" enables
  3236.     European character display if and only if the argument is positive.
  3237.  
  3238.     Some operating systems let you specify the language you are using by
  3239.     setting a locale.  Emacs handles one common special case of this: if
  3240.     your locale name for character types contains the string "8859-1" or
  3241.     "88591", Emacs automatically enables European character display mode
  3242.     when it starts up.
  3243.  
  3244. 132: How do I input 8-bit characters?
  3245.  
  3246.   Again, from the "European Display" page of the on-line manual:
  3247.  
  3248.     If you enter non-ASCII ISO Latin-1 characters often, you might find ISO
  3249.     Accents mode convenient.  When this minor mode is enabled, the
  3250.     characters ``', `'', `"', `^', `/' and `~' modify the following letter
  3251.     by adding the corresponding diacritical mark to it, if possible.  To
  3252.     enable or disable ISO Accents mode, use the command "M-x
  3253.     iso-accents-mode".  This command affects only the current buffer.
  3254.  
  3255.     To enter one of those six special characters, type the character,
  3256.     followed by a space.  Some of those characters have a corresponding
  3257.     "dead key" accent character in the ISO Latin-1 character set; to enter
  3258.     that character, type the corresponding ASCII character twice.  For
  3259.     example, `''' enters the Latin-1 character acute-accent (character code
  3260.     0264).
  3261.  
  3262. 133: Where can I get an Emacs that handles kanji, Chinese, or other
  3263.      character sets?
  3264.  
  3265.   MULE (MULtilingual Enhancement of Emacs) can handle many character sets
  3266.   at once, a feature that will eventually be merged into Emacs. MULE is
  3267.   available at
  3268.  
  3269.     ftp://sh.wide.ad.jp/JAPAN/mule
  3270.     ftp://eltport.etl.go.jp/pub/mule
  3271.  
  3272. 134: Where is an Emacs that can handle Semitic (right-to-left) alphabets?
  3273.  
  3274.   Joel M. Hoffman <joel@exc.com> has written a Lisp package called
  3275.   hebrew.el that allows right-to-left editing of Hebrew.  It reportedly
  3276.   works out of the box with Emacs 19, but requires patches for Emacs 18.
  3277.   Write to Joel if you want the patches or package.
  3278.  
  3279.   Hebrew.el requires a Hebrew screen font, but no other Hardware support.
  3280.   Joel has a screen font for PCs running MS-DOS and Linux.
  3281.  
  3282.   You might also try to query archie for files named with "hebrew"; several
  3283.   ftp sites in Israel may also have the necessary files.
  3284.  
  3285. Archive-name: GNU-Emacs-FAQ/part5
  3286.  
  3287. ------------------------------------------------------------
  3288.  
  3289. If you are viewing this text in a GNU Emacs Buffer, you can type "M-2 C-x
  3290. $" to get an overview of just the questions.  Then, when you want to look
  3291. at the text of the answers, just type "C-x $".
  3292.  
  3293. To search for a question numbered XXX, type "M-C-s ^XXX:", followed by a
  3294. C-r if that doesn't work.  Type RET to end the search.
  3295.  
  3296. If you have w3-mode installed (see question 110), you can visit ftp and
  3297. HTTP uniform resource locators (URLs) by placing the cursor on the URL and
  3298. typing M-x w3-follow-url-at-point.
  3299.  
  3300. Full instructions for getting the latest FAQ are in question 22.
  3301.  
  3302. ------------------------------------------------------------
  3303.  
  3304.  
  3305.  
  3306. Mail and News
  3307.  
  3308. 135: How do I change the included text prefix in mail/news followups?
  3309.  
  3310.   If you read mail with Rmail or news with Gnus, set the variable
  3311.   mail-yank-prefix.  For VM, set vm-included-text-prefix.  For mh-e, set
  3312.   mh-ins-buf-prefix.
  3313.  
  3314.   For fancier control of citations, use SuperCite.  See question 103.
  3315.  
  3316.   To prevent Emacs from including various headers of the replied-to
  3317.   message, set the value of mail-yank-ignored-headers to an appropriate
  3318.   regexp.
  3319.  
  3320. 136: How do I save a copy of outgoing mail?
  3321.  
  3322.   You can either mail yourself a copy by including a "BCC:" header in the
  3323.   mail message, or store a copy of the message directly to a file by
  3324.   including an "FCC:" header.
  3325.  
  3326.   If you use standard mail, you can automatically create a "BCC:" to
  3327.   yourself by putting
  3328.  
  3329.     (setq mail-self-blind t)
  3330.  
  3331.   in your .emacs file.  You can automatically include an "FCC:" field by
  3332.   putting something like the following in your .emacs file:
  3333.  
  3334.     (setq mail-archive-file-name (expand-file-name "~/outgoing"))
  3335.  
  3336.   The output file will be in Unix mail format, which can be read directly
  3337.   by VM, but not always by Rmail.  See question 138.
  3338.  
  3339.   If you use mh-e, add an "FCC:" or "BCC:" field to your components file.
  3340.  
  3341.   It does not work to put "set record filename" in the .mailrc file.
  3342.  
  3343. 137: Why doesn't Emacs expand my aliases when sending mail?
  3344.  
  3345.   * You must separate multiple addresses in the headers of the mail buffer
  3346.     with commas.  This is because Emacs supports RFC822 standard addresses
  3347.     like this one:
  3348.  
  3349.       To: Willy Smith <wks@xpnsv.lwyrs.com>
  3350.  
  3351.     However, you do not need to -- and probably should not, unless your
  3352.     system's version of /usr/ucb/mail (aka mailx) supports RFC822 --
  3353.     separate addresses with commas in your ~/.mailrc file.
  3354.  
  3355.   * Emacs normally only reads the ".mailrc" file once per session, when you
  3356.     start to compose your first mail message.  If you edit .mailrc, you can
  3357.     type "M-x rebuild-mail-abbrevs RET" to make Emacs reread your ~/.mailrc
  3358.     file.
  3359.  
  3360.   * If you like, you can expand mail aliases as abbrevs, as soon as you
  3361.     type them in.  To enable this feature, execute the following:
  3362.  
  3363.        (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
  3364.  
  3365.     Note that the aliases are expanded automatically only after you type
  3366.     RET or a punctuation character (e.g. `,').  You can force their
  3367.     expansion by moving point to the end of the alias and typing "C-x a e"
  3368.     (M-x expand-abbrev).
  3369.  
  3370. 138: Why does Rmail think all my saved messages are one big message?
  3371.  
  3372.   A file created through the FCC: field in a message is in Unix mail
  3373.   format, not the format that Rmail uses (BABYL format).  Rmail will try to
  3374.   convert a Unix mail file into BABYL format on input, but sometimes it
  3375.   makes errors.  For guaranteed safety, you can make the saved-messages
  3376.   file be an inbox for your Rmail file by using the function
  3377.   set-rmail-inbox-list.
  3378.  
  3379. 139: How can I sort the messages in my Rmail folder?
  3380.  
  3381.   In Rmail, type "C-c C-s C-h" to get a list of sorting functions and their
  3382.   key bindings.
  3383.  
  3384. 140: Why does Rmail need to write to /usr/spool/mail?
  3385.  
  3386.   This is the behavior of the "movemail" program which Rmail uses.  This
  3387.   indicates that movemail is configured to use lock files.
  3388.  
  3389.   RMS writes:
  3390.  
  3391.     Certain systems require lock files to interlock access to mail files.
  3392.     On these systems, movemail must write lock files, or you risk losing
  3393.     mail.  You simply must arrange to let movemail write them.
  3394.  
  3395.     Other systems use the flock system call to interlock access.  On these
  3396.     systems, you should configure movemail to use flock.
  3397.  
  3398. 141: How do I recover my mail files after Rmail munges their format?
  3399.  
  3400.   If you have just done rmail-input on a file and you don't want to save it
  3401.   in Rmail's format (called BABYL), just kill the buffer (with C-x k).
  3402.  
  3403.   If you typed M-x rmail and it read some messages out of your inbox and
  3404.   you want to put them in a Unix mail file, use C-o on each message.
  3405.  
  3406.   If you want to convert an existing file from BABYL format to Unix mail
  3407.   format, use the command M-x unrmail: it will prompt you for the input and
  3408.   output file names.
  3409.  
  3410. 142: How do I make Emacs automatically start my mail/news reader?
  3411.  
  3412.   To start Emacs in Gnus:
  3413.  
  3414.     emacs -f gnus
  3415.  
  3416.   in Rmail:
  3417.  
  3418.     emacs -f rmail
  3419.  
  3420.   A more convenient way to start with Gnus:
  3421.  
  3422.     alias gnus 'emacs -f gnus'
  3423.     gnus
  3424.  
  3425.   It is probably unwise to automatically start your mail or news reader
  3426.   from your .emacs file.  This would cause problems if you needed to run
  3427.   two copies of Emacs at one time.  Also, this would make it difficult for
  3428.   you to start Emacs quickly when you needed to.
  3429.  
  3430. 143: How do I read news under Emacs?
  3431.  
  3432.   Use M-x gnus.  It is documented in Info (see question 14).
  3433.  
  3434. 144: Why doesn't Gnus work via NNTP?
  3435.  
  3436.   There is a bug in NNTP version 1.5.10, such that when multiple requests
  3437.   are sent to the NNTP server, the server only handles the first one before
  3438.   blocking waiting for more input which never comes.  NNTP version 1.5.11
  3439.   claims to fix this.
  3440.  
  3441.   You can work around the bug inside Emacs like this:
  3442.  
  3443.     (setq nntp-maximum-request 1)
  3444.  
  3445.   You can find out what version of NNTP your news server is running by
  3446.   telnetting to the NNTP port (usually 119) on the news server machine
  3447.   (i.e., "telnet server-machine 119").  The server should give its version
  3448.   number in the welcome message.  Type "quit" to get out.
  3449.  
  3450. 145: How do I view news articles with embedded underlining (e.g.,
  3451.      ClariNews)?
  3452.  
  3453.   Underlining appears like this:
  3454.  
  3455.     _^Hu_^Hn_^Hd_^He_^Hr_^Hl_^Hi_^Hn_^Hi_^Hn_^Hg
  3456.  
  3457.   Per Abrahamsen <amanda@iesd.auc.dk> suggests using the following code,
  3458.   which uses the underline face to turn such text into true underlining:
  3459.  
  3460.     (defun gnus-article-prepare-overstrike ()
  3461.       ;; Prepare article for overstrike commands.
  3462.       (save-excursion
  3463.         (set-buffer gnus-article-buffer)
  3464.         (let ((buffer-read-only nil))
  3465.           (while (search-forward "\b" nil t)
  3466.             (let ((next (following-char))
  3467.                   (previous (char-after (- (point) 2))))
  3468.               (cond ((eq next previous)
  3469.                      (delete-region (- (point) 2) (point))
  3470.                      (put-text-property (point) (1+ (point))
  3471.                                         'face 'bold))
  3472.                     ((eq next ?_)
  3473.                      (delete-region (1- (point)) (1+ (point)))
  3474.                      (put-text-property (1- (point)) (point)
  3475.                                         'face 'underline))
  3476.                     ((eq previous ?_)
  3477.                      (delete-region (- (point) 2) (point))
  3478.                      (put-text-property (point) (1+ (point))
  3479.                                         'face 'underline))))))))
  3480.  
  3481.     (add-hook 'gnus-article-prepare-hook 'gnus-article-prepare-overstrike)
  3482.  
  3483.   If you prefer to do away with underlining altogether, you can
  3484.   destructively remove it with M-x ununderline-region; do this
  3485.   automatically via
  3486.  
  3487.     (add-hook 'gnus-article-prepare-hook
  3488.       '(lambda () (ununderline-region (point-min) (point-max))))
  3489.  
  3490.  
  3491. 146: How do I save all the items of a multi-part posting in Gnus?
  3492.  
  3493.   Use gnus-uu.  Type C-c C-v C-h in the Gnus summary buffer to see a list
  3494.   of available commands.
  3495.  
  3496. 147: Why does Gnus put the subjects in replies beyond the 80th column?
  3497.  
  3498.   This is a feature.  If you set gnus-thread-hide-subject to non-nil, Gnus
  3499.   will only display the subject of the first posting in a thread, even if
  3500.   some of the replies use different subjects.  It hides the subjects by
  3501.   putting them past the edge of the window and setting truncate lines to t.
  3502.  
  3503.   If your screen looks messed up, then for some reason truncate-lines in
  3504.   your "*Subject*" buffer has been set to nil.  It should be set to t.
  3505.  
  3506. 148: How do I make Gnus start up faster?
  3507.  
  3508.   Remove all the newsgroups in which you have no interest from your .newsrc
  3509.   file by using Gnus's C-k or C-w commands in the "*Newsgroup*" buffer,
  3510.   perhaps after displaying all newsgroups with the L command.
  3511.   Unsubscribing will not speed up Gnus.
  3512.  
  3513. 149: How do I catch up all newsgroups in Gnus?
  3514.  
  3515.   In the "*Newsgroup*" buffer, type the following magical incantation:
  3516.  
  3517.     M-< C-x ( c y C-x ) M-0 C-x e
  3518.  
  3519.   Leave off the "M-<" if you only want to catch up from point to the end of
  3520.   the "*Newsgroup" buffer.
  3521.  
  3522. 150: Why can't I kill in Gnus based  on the Newsgroups/Keywords/Control
  3523.      headers?
  3524.  
  3525.   Gnus will complain that the "Newsgroups:", "Keywords:", and "Control:"
  3526.   headers are "Unknown header" fields.
  3527.  
  3528.   For the "Newsgroups:" header, there is an easy workaround: kill on the
  3529.   "Xref" header instead, which will be present on any cross-posted article
  3530.   (as long as your site carries the cross-post group).
  3531.  
  3532.   If you really want to kill on one of these headers, you can do it like
  3533.   this:
  3534.  
  3535.     (gnus-kill nil "^Newsgroups: .*\\(bad\\.group\\|worse\\.group\\)")
  3536.  
  3537. 151: How do I get rid of flashing messages in Gnus for slow connections?
  3538.  
  3539.   Set nntp-debug-read to nil.
  3540.  
  3541. 152: Why is catch up slow in Gnus?
  3542.  
  3543.   Because Gnus is marking crosspostings read.  You can control this with
  3544.   the variable gnus-use-cross-reference.
  3545.  
  3546. 153: Why does Gnus hang for a long time when posting?
  3547.  
  3548.   David Lawrence <tale@uunet.uu.net> explains:
  3549.  
  3550.     The problem is almost always interaction between NNTP and C News.  NNTP
  3551.     POST asks C News's inews to not background itself but rather hang
  3552.     around and give its exit status so it knows whether the post was
  3553.     successful.  (That wait will on some systems not return the exit status
  3554.     of the waited for job is a different sort of problem.)  It ends up
  3555.     taking a long time because inews is calling relaynews, which often
  3556.     waits for another relaynews to free the lock on the news system so it
  3557.     can file the article.
  3558.  
  3559.     My preferred solution is to change inews to not call relaynews, but
  3560.     rather use newsspool.  This loses some error-catching functionality,
  3561.     but is for the most part safe as inews will detect a lot of the errors
  3562.     on its own.  The C News folks have sped up inews, too, so speed should
  3563.     look better to most folks as that update propagates around.
  3564.  
  3565. 154: Why don't my news postings in Gnus get past the local machine?
  3566.  
  3567.   It could be that your Distribution: field is "local" or a synonym, or
  3568.   your Path: field may be wrong.  This piece of code may fix the latter
  3569.   problem:
  3570.  
  3571.     (setq gnus-use-generic-path t)
  3572.  
  3573. 155: Why doesn't Gnus generate the "Lines:" header?
  3574.  
  3575.   The posting software down the line from Gnus often generates a "Lines:"
  3576.   header so Gnus doesn't have to.  If you want it to, just add Lines to the
  3577.   list in gnus-required-headers:
  3578.  
  3579.     (add-hook 'gnus-startup-hook
  3580.         '(lambda ()
  3581.            (setq gnus-required-headers (cons 'Lines gnus-required-headers))))
  3582.  
  3583. 156: How do I kill all articles in Gnus but those matching a pattern?
  3584.  
  3585.   Example kill file code:
  3586.  
  3587.     ;; kill everything
  3588.     (gnus-kill "subject" "" nil nil)
  3589.     ;; then restore stuff by our favorite poster
  3590.     (gnus-kill "from" "good-guy"
  3591.                (function
  3592.                 (lambda ()
  3593.                   (if (eq ?X (char-after (save-excursion
  3594.                                            (beginning-of-line 1)
  3595.                                            (point))))
  3596.                       (gnus-summary-clear-mark-forward 1))))
  3597.                t)
  3598.  
  3599. 157: How do I abort sending mail or posting a message?
  3600.  
  3601.   Kill the mail or posting buffer with C-x k.
  3602.  
  3603. 158: How do I fix and resubmit a rejected Gnus posting?
  3604.  
  3605.   The standard buffer name for editing Gnus posts is *post-news*.  Assuming
  3606.   that you haven't used that buffer since trying to post the rejected
  3607.   article, you should be able to switch to it using C-x b or
  3608.  
  3609.     M-x select-buffer RET *post-news* RET
  3610.  
  3611.   Once in that buffer, fix whatever problems the message might have, and
  3612.   submit it again using C-c C-c.
  3613.  
  3614. 159: How do I automatically mail a copy of a Gnus followup message to
  3615.      the original poster?
  3616.  
  3617.   Include this Lisp form in your .emacs file:
  3618.  
  3619.     (setq gnus-auto-mail-to-author t)
  3620.  
  3621. 160: How do I make Gnus behave more like nn, where I scan all the messages
  3622.      and select the ones I want before I read any?
  3623.  
  3624.    Include this Lisp form in your .emacs file:
  3625.  
  3626.      (setq gnus-auto-select-first nil
  3627.         gnus-auto-select-next 'quietly)
  3628.  
  3629.   When you enter a group, mark the articles you don't want using `d' and
  3630.   `C-k', then expunge the ones so marked with `x'.  Move to the first
  3631.   article with `M-<', and start reading (with SPC).
  3632.  
  3633. ------------------------------------------------------------
  3634. Copyright 1994, 1995 Reuven M. Lerner
  3635. Copyright 1992, 1993 Steven Byrnes
  3636. Copyright 1990, 1991, 1992 Joseph Brian Wells
  3637.  
  3638. This list of frequently asked questions about GNU Emacs with answers
  3639. ("FAQ") may be translated into other languages, transformed into other
  3640. formats (e.g. Texinfo, Info, WWW, WAIS), and updated with new information.
  3641.  
  3642. The same conditions apply to any derivative of the FAQ as apply to the FAQ
  3643. itself.  Every copy of the FAQ must include this notice or an approved
  3644. translation, information on who is currently maintaining the FAQ and how to
  3645. contact them (including their e-mail address), and information on where the
  3646. latest version of the FAQ is archived (including FTP information).
  3647.  
  3648. The FAQ may be copied and redistributed under these conditions, except that
  3649. the FAQ may not be embedded in a larger literary work unless that work
  3650. itself allows free copying and redistribution.
  3651.  
  3652. ------------------------------------------------------------
  3653.  
  3654. People who helped with this version of the FAQ:
  3655.  
  3656. Ethan Bradford <ethanb@u.washington.edu>, William G. Dubuque
  3657. <wgd@martigny.ai.mit.edu>, Michael Ernst <mernst@theory.lcs.mit.edu>,
  3658. and Denby Wong <3dw16@qlink.QueensU.CA>.
  3659.  
  3660.  
  3661.